aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/FaadDecoderPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-08 22:14:12 +0100
committerMax Kellermann <max@duempel.org>2014-01-08 22:14:12 +0100
commit139122c57f00b9abf2058fb8c481abb958926b5c (patch)
treee28c2c70eff66781c064d0305b005562f0346fd9 /src/decoder/FaadDecoderPlugin.cxx
parent959d7ca9d00ec480f88ef6ea45b3dab7f0e2b717 (diff)
parentfdd76b346171126e143835429a26044a1cbbfb8f (diff)
downloadmpd-139122c57f00b9abf2058fb8c481abb958926b5c.tar.gz
mpd-139122c57f00b9abf2058fb8c481abb958926b5c.tar.xz
mpd-139122c57f00b9abf2058fb8c481abb958926b5c.zip
Merge branch 'v0.18.x'
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 242a34cb3..a37bc88bf 100644
--- a/src/decoder/FaadDecoderPlugin.cxx
+++ b/src/decoder/FaadDecoderPlugin.cxx
@@ -359,6 +359,7 @@ faad_stream_decode(Decoder &mpd_decoder, InputStream &is)
if (!faad_decoder_init(decoder, buffer, audio_format, error)) {
LogError(error);
NeAACDecClose(decoder);
+ decoder_buffer_free(buffer);
return;
}
@@ -428,6 +429,7 @@ faad_stream_decode(Decoder &mpd_decoder, InputStream &is)
/* cleanup */
NeAACDecClose(decoder);
+ decoder_buffer_free(buffer);
}
static bool