From 456e812c28d4e7e39d3304baa73ef4b3ccae2376 Mon Sep 17 00:00:00 2001 From: Knut Andre Tidemann Date: Fri, 12 Jul 2019 14:41:18 +0200 Subject: [PATCH] avaudenc: fix memory leak of refcontext after finalize. --- ext/libav/gstavaudenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/libav/gstavaudenc.c b/ext/libav/gstavaudenc.c index c4c7aab21a..cdca3a6893 100644 --- a/ext/libav/gstavaudenc.c +++ b/ext/libav/gstavaudenc.c @@ -176,6 +176,7 @@ gst_ffmpegaudenc_finalize (GObject * object) /* clean up remaining allocated data */ av_frame_free (&ffmpegaudenc->frame); gst_ffmpeg_avcodec_close (ffmpegaudenc->context); + gst_ffmpeg_avcodec_close (ffmpegaudenc->refcontext); av_free (ffmpegaudenc->context); av_free (ffmpegaudenc->refcontext);