mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 19:42:26 +00:00
tests: fix leak in systemclock test
This commit is contained in:
parent
53d8460bfd
commit
7644c8a3c5
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue