ghostpad: Do not unref the internal pad twice
authorThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 12 Oct 2011 21:14:00 +0000 (18:14 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 12 Oct 2011 21:14:46 +0000 (18:14 -0300)
g_value_unset should already unref the internal proxypad, no
need to do it again

gst/gstghostpad.c

index 4e8c8a8..8e53bcd 100644 (file)
@@ -199,7 +199,6 @@ gst_proxy_pad_iterate_internal_links_default (GstPad * pad)
   g_value_set_object (&v, internal);
   res = gst_iterator_new_single (GST_TYPE_PAD, &v);
   g_value_unset (&v);
-  gst_object_unref (internal);
 
   return res;
 }