parse-launch: fix factory leak in test
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 4 May 2016 08:04:30 +0000 (10:04 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 5 May 2016 07:01:25 +0000 (10:01 +0300)
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

tests/check/pipelines/parse-launch.c

index 13419e2..ec30d9c 100644 (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++) {