parse-launch: fix factory leak in test

We get 2 references one from gst_element_factory_find() and the other
from gst_plugin_feature_load().

https://bugzilla.gnome.org/show_bug.cgi?id=765976
This commit is contained in:
Guillaume Desmottes 2016-05-04 10:04:30 +02:00 committed by Sebastian Dröge
parent 784ebb045e
commit 6deefac851

View file

@ -131,6 +131,7 @@ GST_START_TEST (test_launch_lines)
type = gst_element_factory_get_element_type (efac);
fail_unless (type != 0);
g_object_unref (efac);
g_object_unref (efac);
fail_unless (gst_element_register (NULL, "1__dentity", GST_RANK_NONE, type));
for (s = test_lines; *s != NULL; s++) {