pad: remove unref, the object is NULL
authorWim Taymans <wim.taymans@collabora.co.uk>
Tue, 17 May 2011 14:50:53 +0000 (16:50 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 17 May 2011 14:50:53 +0000 (16:50 +0200)
tests/check/gst/gstpad.c

index 7f2918a..e96a3db 100644 (file)
@@ -52,7 +52,6 @@ GST_START_TEST (test_link)
   srct = gst_pad_get_pad_template (src);
   fail_unless (srct == NULL);
   ASSERT_OBJECT_REFCOUNT (src, "source pad", 1);
-  gst_object_unref (srct);
 
   /* clean up */
   ASSERT_OBJECT_REFCOUNT (src, "source pad", 1);