mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 20:09:50 +01:00
Fix a segfault that occurred when an album cover search finished - seen more often with Python providers.
This commit is contained in:
parent
61092899c9
commit
3ac2ae6a83
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user