From: Edward Hervey Date: Wed, 16 Nov 2022 15:19:52 +0000 (+0100) Subject: ges-demux: Don't leak string X-Git-Tag: 1.22.0~338 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=615fbb3f10e81f3bee9a8e1e71f028acf896e2df;p=platform%2Fupstream%2Fgstreamer.git ges-demux: Don't leak string Part-of: --- diff --git a/subprojects/gst-editing-services/plugins/ges/gesdemux.c b/subprojects/gst-editing-services/plugins/ges/gesdemux.c index ed13a06..5972436 100644 --- a/subprojects/gst-editing-services/plugins/ges/gesdemux.c +++ b/subprojects/gst-editing-services/plugins/ges/gesdemux.c @@ -193,6 +193,14 @@ ges_demux_set_property (GObject * object, guint property_id, } static void +ges_demux_finalize (GObject * object) +{ + GESDemux *demux = (GESDemux *) object; + g_free (demux->upstream_uri); + G_OBJECT_CLASS (ges_demux_parent_class)->finalize (object); +} + +static void ges_demux_class_init (GESDemuxClass * self_class) { GstPadTemplate *pad_template; @@ -204,6 +212,7 @@ ges_demux_class_init (GESDemuxClass * self_class) sinkpad_caps = ges_demux_get_sinkpad_caps (); + gclass->finalize = ges_demux_finalize; gclass->get_property = ges_demux_get_property; gclass->set_property = ges_demux_set_property;