decoder/flac: don't allocate cuesheet twice (memleak)

The function flac_cue_track() first calls FLAC__metadata_object_new(),
then overwrites this pointer with FLAC__metadata_get_cuesheet().  This
allocate two FLAC__StreamMetadata objects, but the first pointer is
lost, and never freed.
This commit is contained in:
Max Kellermann
2009-08-14 11:51:42 +02:00
parent e44f313912
commit 1c4f407a6d
2 changed files with 7 additions and 4 deletions

1
NEWS
View File

@@ -5,6 +5,7 @@ ver 0.15.2 (2009/??/??)
* decoders:
- mad: skip ID3 frames when libid3tag is disabled
- flac: parse all replaygain tags
- flac: don't allocate cuesheet twice (memleak)
* update: free empty path string (memleak)