+2006-08-21 Edward Hervey <edward@fluendo.com>
+
+ * gst/gstxml.c: (gst_xml_class_init), (gst_xml_dispose):
+ Implement GObject::dispose virtual method in GstXML so we can free the
+ top_elements GList.
+
2006-08-21 Wim Taymans <wim@fluendo.com>
* gst/gstbuffer.c: (gst_buffer_make_metadata_writable),
static void gst_xml_class_init (GstXMLClass * klass);
static void gst_xml_init (GstXML * xml);
+static void gst_xml_dispose (GObject * object);
static void gst_xml_object_loaded (GstObject * private, GstObject * object,
xmlNodePtr self, gpointer data);
parent_class = g_type_class_peek_parent (klass);
+ gobject_class->dispose = GST_DEBUG_FUNCPTR (gst_xml_dispose);
+
/* FIXME G_TYPE_POINTER should be GType of xmlNodePtr
* (ensonic) can't be fixed, as libxml does not use GObject (unfortunately)
*/
xml->topelements = NULL;
}
+static void
+gst_xml_dispose (GObject * object)
+{
+ g_list_free (GST_XML (object)->topelements);
+}
+
/**
* gst_xml_new:
*