Permalink
Browse files

Fix leak of MetaIOID3() object if we're scanning Flac files without I…

…D3 tags. Fixes #10776 and #10757
  • Loading branch information...
1 parent 3a086e3 commit 2144ef18beb7024b0e266e3dd5d0ed056ca0cd3a @stuartm stuartm committed May 30, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 mythplugins/mythmusic/mythmusic/avfdecoder.cpp
@@ -512,7 +512,9 @@ MetaIO* avfDecoder::doCreateTagger(void)
if (file->TagExists(filename))
return file;
else
- return new MetaIOFLACVorbis();
+ delete file;
+
+ return new MetaIOFLACVorbis();
}
else if (extension == "m4a")
return new MetaIOMP4();

0 comments on commit 2144ef1

Please sign in to comment.