avcoded/fft: Fix memory leak if ctx2 is used
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
a562cfee2e
commit
250471ea17
@ -130,6 +130,7 @@ av_cold void av_mdct_end(FFTContext *s)
|
|||||||
{
|
{
|
||||||
if (s) {
|
if (s) {
|
||||||
AVTXWrapper *w = (AVTXWrapper *)s;
|
AVTXWrapper *w = (AVTXWrapper *)s;
|
||||||
|
av_tx_uninit(&w->ctx2);
|
||||||
av_tx_uninit(&w->ctx);
|
av_tx_uninit(&w->ctx);
|
||||||
av_free(w);
|
av_free(w);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user