mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avcoded/fft: Fix memory leak if ctx2 is used
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit 250471ea17)
This commit is contained in:
parent
af912d80d8
commit
c7fe7ee8d4
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue