mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
ges: Ensure GObject finalize and dispose methods chain up to parents
https://bugzilla.gnome.org/show_bug.cgi?id=725918
This commit is contained in:
parent
4170ed1721
commit
54367a2d36
5 changed files with 8 additions and 11 deletions
|
@ -55,15 +55,6 @@ static GParamSpec *properties[PROP_LAST];
|
|||
* GObject vmetods implemenation *
|
||||
* *
|
||||
***********************************************/
|
||||
static void
|
||||
_dispose (GObject * object)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
_finalize (GObject * object)
|
||||
{
|
||||
}
|
||||
|
||||
static void
|
||||
_get_property (GObject * object, guint property_id,
|
||||
|
@ -123,8 +114,6 @@ ges_clip_asset_class_init (GESClipAssetClass * self_class)
|
|||
|
||||
g_type_class_add_private (self_class, sizeof (GESClipAssetPrivate));
|
||||
object_class->constructed = _constructed;
|
||||
object_class->dispose = _dispose;
|
||||
object_class->finalize = _finalize;
|
||||
object_class->get_property = _get_property;
|
||||
object_class->set_property = _set_property;
|
||||
|
||||
|
|
|
@ -196,6 +196,8 @@ _dispose (GObject * object)
|
|||
GESContainer *self = GES_CONTAINER (object);
|
||||
|
||||
g_hash_table_unref (self->priv->mappings);
|
||||
|
||||
G_OBJECT_CLASS (ges_container_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -140,6 +140,8 @@ static void
|
|||
ges_formatter_dispose (GObject * object)
|
||||
{
|
||||
ges_formatter_set_project (GES_FORMATTER (object), NULL);
|
||||
|
||||
G_OBJECT_CLASS (ges_formatter_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -273,6 +273,8 @@ _finalize (GObject * object)
|
|||
|
||||
if (priv->uri)
|
||||
g_free (priv->uri);
|
||||
|
||||
G_OBJECT_CLASS (ges_project_parent_class)->finalize (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -226,6 +226,8 @@ gst_frame_positionner_dispose (GObject * object)
|
|||
(GWeakNotify) _weak_notify_cb, pos);
|
||||
pos->current_track = NULL;
|
||||
}
|
||||
|
||||
G_OBJECT_CLASS (gst_frame_positionner_parent_class)->dispose (object);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue