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:
Dan Williams 2014-03-07 14:48:06 -06:00 committed by Tim-Philipp Müller
parent 4170ed1721
commit 54367a2d36
5 changed files with 8 additions and 11 deletions

View file

@ -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;

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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