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()) {
|
||||
song->set_length_nanosec(tag->audioProperties()->length() * kNsecPerSec);
|
||||
}
|
||||
|
||||
delete stream;
|
||||
return true;
|
||||
}
|
||||
|
||||
delete stream;
|
||||
return false;
|
||||
}
|
||||
#endif // HAVE_GOOGLE_DRIVE
|
||||
|
Loading…
x
Reference in New Issue
Block a user