]> source.dussan.org Git - tigervnc.git/commitdiff
H264Libav: Clean up sws context 1785/head
authorAndri Yngvason <andri@yngvason.is>
Fri, 2 Aug 2024 09:20:24 +0000 (09:20 +0000)
committerAndri Yngvason <andri@yngvason.is>
Fri, 16 Aug 2024 22:22:10 +0000 (22:22 +0000)
This fixes a memory leak

common/rfb/H264LibavDecoderContext.cxx

index 2bd7d343277cc20f02cbbacc3e96011262e5e669..38210205f3f455e2d119ab414ce7dd9cfc88e8d4 100644 (file)
@@ -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;
 }