From ce2605fad2c46193bc2296136fb51b0225b1cf3c Mon Sep 17 00:00:00 2001 From: akallabeth Date: Mon, 23 Sep 2024 11:00:29 +0200 Subject: [PATCH] [codec,dsp] fix FDK-AAC memory leak --- libfreerdp/codec/dsp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libfreerdp/codec/dsp.c b/libfreerdp/codec/dsp.c index 913a886a5..26e44f4cf 100644 --- a/libfreerdp/codec/dsp.c +++ b/libfreerdp/codec/dsp.c @@ -1183,6 +1183,12 @@ fail: void freerdp_dsp_context_free(FREERDP_DSP_CONTEXT* context) { +#if defined(WITH_FDK_AAC) + FREERDP_DSP_COMMON_CONTEXT* ctx = (FREERDP_DSP_COMMON_CONTEXT*)context; + WINPR_ASSERT(ctx); + fdk_aac_dsp_uninit(ctx); +#endif + #if defined(WITH_DSP_FFMPEG) freerdp_dsp_ffmpeg_context_free(context); #else