Update coverdialog.cpp

This seems to be safier
This commit is contained in:
Pavel Shlyak
2019-01-05 17:27:32 +04:00
committed by GitHub
parent 4563e4bda9
commit ad2229a7b8

View File

@@ -922,8 +922,8 @@ NetworkJob * CoverDialog::downloadImage(const QString &url, DownloadType dlType)
return nullptr;
}
tmp->remove();
delete tmp;
tempFiles.removeAll(tmp);
delete tmp;
break;
}
}