From: Sebastian Dröge Date: Mon, 15 Jul 2019 07:42:42 +0000 (+0300) Subject: avvidenc: Close reference context before freeing it X-Git-Tag: 1.19.3~499^2~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d3cd3983aba981431bbd18d4daf50f350847d5c;p=platform%2Fupstream%2Fgstreamer.git avvidenc: Close reference context before freeing it Otherwise we'll leak some memory. See https://gitlab.freedesktop.org/gstreamer/gst-libav/merge_requests/32 --- diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index 621d00b..5193a01 100644 --- a/ext/libav/gstavvidenc.c +++ b/ext/libav/gstavvidenc.c @@ -221,6 +221,7 @@ gst_ffmpegvidenc_finalize (GObject * object) /* clean up remaining allocated data */ av_frame_free (&ffmpegenc->picture); gst_ffmpeg_avcodec_close (ffmpegenc->context); + gst_ffmpeg_avcodec_close (ffmpegenc->refcontext); av_free (ffmpegenc->context); av_free (ffmpegenc->refcontext);