diff options
author | Andri Yngvason <andri@yngvason.is> | 2024-08-02 09:20:24 +0000 |
---|---|---|
committer | Andri Yngvason <andri@yngvason.is> | 2024-08-16 22:22:10 +0000 |
commit | 35966469bc3410ba1573126300a19bf47d370910 (patch) | |
tree | d970b799aff418e4f78ee021f8952ddbd6981158 /common | |
parent | fff17cae7738d6b3d65426a0ce7df76e8034ad1c (diff) | |
download | tigervnc-35966469bc3410ba1573126300a19bf47d370910.tar.gz tigervnc-35966469bc3410ba1573126300a19bf47d370910.zip |
H264Libav: Clean up sws context
This fixes a memory leak
Diffstat (limited to 'common')
-rw-r--r-- | common/rfb/H264LibavDecoderContext.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |