aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/FaadDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-08 22:11:00 +0100
committerMax Kellermann <max@duempel.org>2014-01-08 22:11:00 +0100
commitfdd76b346171126e143835429a26044a1cbbfb8f (patch)
tree4338d6c24ba986eab243b7925abe4ed6afd22a86 /src/decoder/FaadDecoderPlugin.cxx
parente490e5d0ab6f7ab2204329c0280310b33f3a49f4 (diff)
downloadmpd-fdd76b346171126e143835429a26044a1cbbfb8f.tar.gz
mpd-fdd76b346171126e143835429a26044a1cbbfb8f.tar.xz
mpd-fdd76b346171126e143835429a26044a1cbbfb8f.zip
decoder/faad: fix memory leak
Diffstat (limited to 'src/decoder/FaadDecoderPlugin.cxx')
-rw-r--r--src/decoder/FaadDecoderPlugin.cxx2
1 files changed, 2 insertions, 0 deletions
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