mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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:
parent
784ebb045e
commit
6deefac851
1 changed files with 1 additions and 0 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue