collectpads: Fix memory leak in unit test

This commit is contained in:
Sebastian Dröge 2014-04-14 21:35:52 +02:00
parent ed9d0381b2
commit 3e340ea655

View file

@ -836,6 +836,7 @@ setup_src_pad (GstElement * element,
"Could not link source and %s sink pads", GST_ELEMENT_NAME (element));
gst_pad_set_event_function (srcpad, src_event);
gst_pad_set_active (srcpad, TRUE);
gst_object_unref (sinkpad);
return srcpad;
}