Fix a segfault that occurred when an album cover search finished - seen more often with Python providers.

This commit is contained in:
David Sansome 2011-05-28 16:00:38 +00:00
parent 61092899c9
commit 3ac2ae6a83
1 changed files with 2 additions and 2 deletions

View File

@ -96,11 +96,11 @@ void AlbumCoverFetcher::StartRequests() {
}
void AlbumCoverFetcher::SingleSearchFinished(quint64 request_id, CoverSearchResults results) {
delete active_requests_.take(request_id);
active_requests_.take(request_id)->deleteLater();
emit SearchFinished(request_id, results);
}
void AlbumCoverFetcher::SingleCoverFetched(quint64 request_id, const QImage& image) {
delete active_requests_.take(request_id);
active_requests_.take(request_id)->deleteLater();
emit AlbumCoverFetched(request_id, image);
}