gstobject: unparent the controlbinding on dispose
authorStefan Sauer <ensonic@users.sf.net>
Thu, 5 Apr 2012 19:55:07 +0000 (21:55 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Thu, 5 Apr 2012 19:55:07 +0000 (21:55 +0200)
gst/gstobject.c

index e01e8df..f830402 100644 (file)
@@ -375,7 +375,7 @@ gst_object_dispose (GObject * object)
     GList *node;
 
     for (node = self->control_bindings; node; node = g_list_next (node)) {
-      g_object_unref (node->data);
+      gst_object_unparent (node->data);
     }
     g_list_free (self->control_bindings);
     self->control_bindings = NULL;