Skip to content

Commit

Permalink
Fix memory leak when reading flac vorbis tags. Fixes #10721
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed May 24, 2012
1 parent ec2a3df commit 7d4b285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythplugins/mythmusic/mythmusic/metaioflacvorbis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ Metadata* MetaIOFLACVorbis::read(const QString &filename)

if (metadata->Length() <= 0)
metadata->setLength(getTrackLength(flacfile));
else
delete flacfile;

delete flacfile;

return metadata;
}
Expand Down

0 comments on commit 7d4b285

Please sign in to comment.