From 04da163496c09f92c4596ebaf0854c489cb8018b Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Sat, 24 Nov 2001 02:49:54 +0000 Subject: [PATCH] fixed a double-unreffing problem when disposing of elements Original commit message from CVS: fixed a double-unreffing problem when disposing of elements --- gst/gstelement.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstelement.c b/gst/gstelement.c index d1f3139..e7597af 100644 --- a/gst/gstelement.c +++ b/gst/gstelement.c @@ -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); -- 2.7.4