avvidenc: Don't leak filename

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3390>
This commit is contained in:
Edward Hervey 2022-11-12 10:02:15 +01:00 committed by Edward Hervey
parent c00da50c61
commit 052f23a310

View file

@ -226,6 +226,7 @@ gst_ffmpegvidenc_finalize (GObject * object)
gst_ffmpeg_avcodec_close (ffmpegenc->refcontext);
av_freep (&ffmpegenc->context);
av_freep (&ffmpegenc->refcontext);
g_free (ffmpegenc->filename);
G_OBJECT_CLASS (parent_class)->finalize (object);
}