diff options
author | Max Kellermann <max@duempel.org> | 2014-01-08 22:11:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-08 22:11:00 +0100 |
commit | fdd76b346171126e143835429a26044a1cbbfb8f (patch) | |
tree | 4338d6c24ba986eab243b7925abe4ed6afd22a86 | |
parent | e490e5d0ab6f7ab2204329c0280310b33f3a49f4 (diff) | |
download | mpd-fdd76b346171126e143835429a26044a1cbbfb8f.tar.gz mpd-fdd76b346171126e143835429a26044a1cbbfb8f.tar.xz mpd-fdd76b346171126e143835429a26044a1cbbfb8f.zip |
decoder/faad: fix memory leak
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/decoder/FaadDecoderPlugin.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -2,6 +2,8 @@ ver 0.18.7 (not yet released) * playlist - pls: fix crash after parser error - soundcloud: fix build failure with libyajl 2.0.1 +* decoder + - faad: fix memory leak * daemon: don't initialize supplementary groups when already running as the configured user diff --git a/src/decoder/FaadDecoderPlugin.cxx b/src/decoder/FaadDecoderPlugin.cxx index f1dd5a343..9fd20167d 100644 --- a/src/decoder/FaadDecoderPlugin.cxx +++ b/src/decoder/FaadDecoderPlugin.cxx @@ -393,6 +393,7 @@ faad_stream_decode(Decoder &mpd_decoder, InputStream &is) if (!ret) { LogError(error); NeAACDecClose(decoder); + decoder_buffer_free(buffer); return; } @@ -461,6 +462,7 @@ faad_stream_decode(Decoder &mpd_decoder, InputStream &is) /* cleanup */ NeAACDecClose(decoder); + decoder_buffer_free(buffer); } static bool |