AlbumCoverChoiceController: Add missing close
This commit is contained in:
@@ -672,6 +672,7 @@ QUrl AlbumCoverChoiceController::SaveCoverToFileAutomatic(const Song::Source sou
|
|||||||
if (!result.image_data.isEmpty() && result.is_jpeg()) {
|
if (!result.image_data.isEmpty() && result.is_jpeg()) {
|
||||||
if (file.open(QIODevice::WriteOnly)) {
|
if (file.open(QIODevice::WriteOnly)) {
|
||||||
if (file.write(result.image_data) > 0) {
|
if (file.write(result.image_data) > 0) {
|
||||||
|
file.close();
|
||||||
return QUrl::fromLocalFile(filepath);
|
return QUrl::fromLocalFile(filepath);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user