Skip to content

Commit

Permalink
H264Libav: Clean up sws context
Browse files Browse the repository at this point in the history
This fixes a memory leak
  • Loading branch information
any1 committed Aug 16, 2024
1 parent fff17ca commit 3596646
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/rfb/H264LibavDecoderContext.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3596646

Please sign in to comment.