ges-demux: Don't leak string

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3428>
This commit is contained in:
Edward Hervey 2022-11-16 16:19:52 +01:00
parent 4aaaf29761
commit 615fbb3f10

View file

@ -192,6 +192,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)
{
@ -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;