From: Andri Yngvason Date: Fri, 2 Aug 2024 09:20:24 +0000 (+0000) Subject: H264Libav: Clean up sws context X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=35966469bc3410ba1573126300a19bf47d370910;p=tigervnc.git H264Libav: Clean up sws context This fixes a memory leak --- diff --git a/common/rfb/H264LibavDecoderContext.cxx b/common/rfb/H264LibavDecoderContext.cxx index 2bd7d343..38210205 100644 --- a/common/rfb/H264LibavDecoderContext.cxx +++ b/common/rfb/H264LibavDecoderContext.cxx @@ -99,6 +99,7 @@ void H264LibavDecoderContext::freeCodec() { avcodec_free_context(&avctx); av_frame_free(&rgbFrame); av_frame_free(&frame); + sws_freeContext(sws); free(h264WorkBuffer); initialized = false; }