[codec,dsp] fix FDK-AAC memory leak

This commit is contained in:
akallabeth 2024-09-23 11:00:29 +02:00
parent b350b0039e
commit ce2605fad2
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -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