mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
*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:
parent
a1d5282ba7
commit
135707290e
2 changed files with 7 additions and 8 deletions
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue