fixed a double-unreffing problem when disposing of elements

Original commit message from CVS:
fixed a double-unreffing problem when disposing of elements
This commit is contained in:
Andy Wingo 2001-11-24 02:49:54 +00:00
parent 680fdd6ce7
commit 04da163496

View file

@ -963,7 +963,8 @@ gst_element_dispose (GObject *object)
orig = pads = g_list_copy (element->pads);
while (pads) {
pad = GST_PAD (pads->data);
gst_object_unref (GST_OBJECT (pad));
// the gst_object_unparent will do the unreffing
gst_element_remove_pad(element, pad);
pads = g_list_next (pads);
}
g_list_free (orig);