decoder/faad: fix memory leak

This commit is contained in:
Max Kellermann 2014-01-08 22:11:00 +01:00
parent e490e5d0ab
commit fdd76b3461
2 changed files with 4 additions and 0 deletions

2
NEWS
View File

@ -2,6 +2,8 @@ ver 0.18.7 (not yet released)
* playlist * playlist
- pls: fix crash after parser error - pls: fix crash after parser error
- soundcloud: fix build failure with libyajl 2.0.1 - soundcloud: fix build failure with libyajl 2.0.1
* decoder
- faad: fix memory leak
* daemon: don't initialize supplementary groups when already running * daemon: don't initialize supplementary groups when already running
as the configured user as the configured user

View File

@ -393,6 +393,7 @@ faad_stream_decode(Decoder &mpd_decoder, InputStream &is)
if (!ret) { if (!ret) {
LogError(error); LogError(error);
NeAACDecClose(decoder); NeAACDecClose(decoder);
decoder_buffer_free(buffer);
return; return;
} }
@ -461,6 +462,7 @@ faad_stream_decode(Decoder &mpd_decoder, InputStream &is)
/* cleanup */ /* cleanup */
NeAACDecClose(decoder); NeAACDecClose(decoder);
decoder_buffer_free(buffer);
} }
static bool static bool