summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-10-16 20:29:01 +0200
committerGravatar waker <wakeroid@gmail.com>2012-10-16 20:29:01 +0200
commit1c03f44725ad06f12829ea142001bd47a30fc717 (patch)
tree4d99de2c877983f17e5e82fb31343f1b1f3859d1 /plugins
parentf2595b983e7cb3678504bf79dcf7e20c9568da7f (diff)
aac: fixed filehandle leak
Diffstat (limited to 'plugins')
-rw-r--r--plugins/aac/aac.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/aac/aac.c b/plugins/aac/aac.c
index acef86d9..1083f94f 100644
--- a/plugins/aac/aac.c
+++ b/plugins/aac/aac.c
@@ -1194,10 +1194,12 @@ aac_insert (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname) {
}
mp4ff_close (mp4);
if (i < ntracks) {
+ deadbeef->fclose (fp);
return after;
}
if (ntracks > 0) {
// mp4 container found, but no valid aac tracks in it
+ deadbeef->fclose (fp);
return NULL;
}
}