Fix memory leak in tagreader
This commit is contained in:
parent
ea03a621a8
commit
357a9ff194
@ -1007,9 +1007,12 @@ bool TagReader::ReadCloudFile(const QUrl& download_url, const QString& title,
|
|||||||
if (tag->audioProperties()) {
|
if (tag->audioProperties()) {
|
||||||
song->set_length_nanosec(tag->audioProperties()->length() * kNsecPerSec);
|
song->set_length_nanosec(tag->audioProperties()->length() * kNsecPerSec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete stream;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete stream;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif // HAVE_GOOGLE_DRIVE
|
#endif // HAVE_GOOGLE_DRIVE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user