From 4d3cd3983aba981431bbd18d4daf50f350847d5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 15 Jul 2019 10:42:42 +0300 Subject: [PATCH] avvidenc: Close reference context before freeing it Otherwise we'll leak some memory. See https://gitlab.freedesktop.org/gstreamer/gst-libav/merge_requests/32 --- ext/libav/gstavvidenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index 621d00b767..5193a017f4 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);