LATM/AAC: Free previously initialized context on reinit.
authorRonald S. Bultje <rsbultje@gmail.com>
Fri, 20 May 2011 14:49:20 +0000 (10:49 -0400)
committerDiego Biurrun <diego@biurrun.de>
Fri, 20 May 2011 16:24:53 +0000 (18:24 +0200)
commit42da8ea8e848e65611f0c606cd2c96d3a70c041d
treeacdd4634fa76efecd15fb1c122bf384d3a3d9bc4
parent0a6db2a25a70e3e8fb414e361719152a9e7e9766
LATM/AAC: Free previously initialized context on reinit.

Fixes memory leaks which are the result of overwriting already-initialized
MDCT contexts during context reinitialization, e.g. in valgrind
fate-aac-latm_000000001180bc60.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavcodec/aacdec.c