Refcounting fixes

Original commit message from CVS:
Refcounting fixes
This commit is contained in:
Wim Taymans 2001-05-14 21:57:06 +00:00
parent 5cb557dbf5
commit f00f7effdd

View file

@ -909,7 +909,7 @@ gst_element_real_destroy (GtkObject *object)
orig = pads = g_list_copy (element->pads);
while (pads) {
pad = GST_PAD (pads->data);
gst_object_unparent (GST_OBJECT (pad));
gst_object_destroy (GST_OBJECT (pad));
pads = g_list_next (pads);
}
g_list_free (orig);