xml-formatter: handle dispose properly
authorJustin Kim <justin.kim@collabora.com>
Thu, 1 Oct 2015 14:26:05 +0000 (16:26 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Thu, 1 Oct 2015 14:26:05 +0000 (16:26 +0200)
Summary:
To dispose properly, a child object should call same function
of parent class.

Reviewers: thiblahute

Differential Revision: https://phabricator.freedesktop.org/D311

ges/ges-xml-formatter.c

index c50d5ca..340fa7a 100644 (file)
@@ -1513,6 +1513,8 @@ _dispose (GObject * object)
 {
   g_clear_pointer (&GES_XML_FORMATTER (object)->priv->element_id,
       (GDestroyNotify) g_hash_table_unref);
+
+  G_OBJECT_CLASS (parent_class)->dispose (object);
 }
 
 static void