elementfactory: fix factory leak in test
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 2 May 2016 05:35:45 +0000 (07:35 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 3 May 2016 08:02:47 +0000 (11:02 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=765903

tests/check/gst/gstelementfactory.c

index 366a1c2..47c125c 100644 (file)
@@ -159,6 +159,7 @@ GST_START_TEST (test_class)
   fail_if (klass->elementfactory == NULL);
   fail_if (klass->elementfactory != factory);
 
+  gst_object_unref (factory);
 }
 
 GST_END_TEST;