Commit 4d3cd398 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

avvidenc: Close reference context before freeing it

Otherwise we'll leak some memory.

See !32
parent 456e812c
Pipeline #48728 passed with stages
in 89 minutes and 47 seconds
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment