Permalink
Browse files

Fix memory leak when reading flac vorbis tags. Fixes #10721

  • Loading branch information...
1 parent ec2a3df commit 7d4b2858a59e4a24f6939a4a7ee26faf997da65e @stuartm stuartm committed May 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythplugins/mythmusic/mythmusic/metaioflacvorbis.cpp
@@ -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;
}

0 comments on commit 7d4b285

Please sign in to comment.