Skip to content

Commit

Permalink
Fix leak of MetaIOID3() object if we're scanning Flac files without I…
Browse files Browse the repository at this point in the history
…D3 tags. Fixes #10776 and #10757
  • Loading branch information
stuartm committed May 30, 2012
1 parent 3a086e3 commit 2144ef1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mythplugins/mythmusic/mythmusic/avfdecoder.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 2144ef1

Please sign in to comment.