From 7644c8a3c5338a3f98b878730bca174fda79c982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 8 Feb 2014 23:39:03 +0000 Subject: [PATCH] tests: fix leak in systemclock test --- tests/check/gst/gstsystemclock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/check/gst/gstsystemclock.c b/tests/check/gst/gstsystemclock.c index 455de71f4e..86f012b3d5 100644 --- a/tests/check/gst/gstsystemclock.c +++ b/tests/check/gst/gstsystemclock.c @@ -132,6 +132,7 @@ GST_START_TEST (test_set_default) clock = g_object_new (GST_TYPE_SYSTEM_CLOCK, "name", "TestClock", NULL); gst_system_clock_set_default (clock); g_assert_cmpint (GST_OBJECT_REFCOUNT (static_clock), ==, 1); + g_object_unref (static_clock); static_clock = gst_system_clock_obtain (); fail_unless (static_clock == clock); g_assert_cmpint (GST_OBJECT_REFCOUNT (clock), ==, 3);