mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 13:11:06 +00:00
ges-demux: Don't leak string
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3428>
This commit is contained in:
parent
4aaaf29761
commit
615fbb3f10
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue