From 6deefac851a58f3d55540f6dd852ffd3799a3919 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 4 May 2016 10:04:30 +0200 Subject: [PATCH] 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 --- tests/check/pipelines/parse-launch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/check/pipelines/parse-launch.c b/tests/check/pipelines/parse-launch.c index 13419e28f6..ec30d9cafa 100644 --- a/tests/check/pipelines/parse-launch.c +++ b/tests/check/pipelines/parse-launch.c @@ -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++) {