Clean up the stream if ownership isn't taken by a taglib file.

This commit is contained in:
David Sansome 2014-06-05 20:15:23 +10:00
parent 36f0cde07d
commit 0bf911aec4

View File

@ -979,6 +979,7 @@ bool TagReader::ReadCloudFile(const QUrl& download_url, const QString& title,
new TagLib::ASF::File(stream, true, TagLib::AudioProperties::Accurate));
} else {
qLog(Debug) << "Unknown mime type for tagging:" << mime_type;
delete stream;
return false;
}