*uri-source: Call free from the object ->finalize not ->dispose

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/198>
This commit is contained in:
Thibault Saunier 2020-06-24 11:11:11 -04:00
parent a1d5282ba7
commit 135707290e
2 changed files with 7 additions and 8 deletions

View file

@ -159,14 +159,13 @@ ges_audio_uri_source_set_property (GObject * object, guint property_id,
}
static void
ges_audio_uri_source_dispose (GObject * object)
ges_audio_uri_source_finalize (GObject * object)
{
GESAudioUriSource *uriclip = GES_AUDIO_URI_SOURCE (object);
if (uriclip->uri)
g_free (uriclip->uri);
g_free (uriclip->uri);
G_OBJECT_CLASS (ges_audio_uri_source_parent_class)->dispose (object);
G_OBJECT_CLASS (ges_audio_uri_source_parent_class)->finalize (object);
}
static void
@ -178,7 +177,7 @@ ges_audio_uri_source_class_init (GESAudioUriSourceClass * klass)
object_class->get_property = ges_audio_uri_source_get_property;
object_class->set_property = ges_audio_uri_source_set_property;
object_class->dispose = ges_audio_uri_source_dispose;
object_class->finalize = ges_audio_uri_source_finalize;
/**
* GESAudioUriSource:uri:

View file

@ -320,13 +320,13 @@ ges_video_uri_source_set_property (GObject * object, guint property_id,
}
static void
ges_video_uri_source_dispose (GObject * object)
ges_video_uri_source_finalize (GObject * object)
{
GESVideoUriSource *urisource = GES_VIDEO_URI_SOURCE (object);
g_free (urisource->uri);
G_OBJECT_CLASS (ges_video_uri_source_parent_class)->dispose (object);
G_OBJECT_CLASS (ges_video_uri_source_parent_class)->finalize (object);
}
static void
@ -337,7 +337,7 @@ ges_video_uri_source_class_init (GESVideoUriSourceClass * klass)
object_class->get_property = ges_video_uri_source_get_property;
object_class->set_property = ges_video_uri_source_set_property;
object_class->dispose = ges_video_uri_source_dispose;
object_class->finalize = ges_video_uri_source_finalize;
/**
* GESVideoUriSource:uri: