Close MediaFileInfo
This commit is contained in:
parent
b1640d3626
commit
f36997c7c5
|
@ -80,7 +80,10 @@ bool TagReaderTagParser::IsMediaFile(const QString &filename) const {
|
|||
|
||||
const auto tracks = taginfo.tracks();
|
||||
for (const auto track : tracks) {
|
||||
if (track->mediaType() == TagParser::MediaType::Audio) return true;
|
||||
if (track->mediaType() == TagParser::MediaType::Audio) {
|
||||
taginfo.close();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
taginfo.close();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue