diff --git a/common/rfb/H264LibavDecoderContext.cxx b/common/rfb/H264LibavDecoderContext.cxx index 885caf9dfa..8489c70f4d 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; }