From c03f9d198049b09a0dd944da7a581f1836b07947 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 11 Nov 2013 22:46:15 +0100 Subject: aac: fixed mp4ff memleak when a file has chapters or cuesheet --- plugins/aac/aac.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/aac') diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c index 60479504..9d97fe8a 100644 --- a/plugins/aac/aac.c +++ b/plugins/aac/aac.c @@ -1172,6 +1172,8 @@ aac_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { } free (chapters); if (cue) { + deadbeef->fclose (fp); + mp4ff_close (mp4); deadbeef->pl_item_unref (it); deadbeef->pl_item_unref (cue); deadbeef->pl_unlock (); @@ -1186,6 +1188,8 @@ aac_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) { if (cuesheet) { cue = deadbeef->plt_insert_cue_from_buffer (plt, after, it, cuesheet, strlen (cuesheet), totalsamples, samplerate); if (cue) { + deadbeef->fclose (fp); + mp4ff_close (mp4); deadbeef->pl_item_unref (it); deadbeef->pl_item_unref (cue); deadbeef->pl_unlock (); -- cgit v1.2.3