projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53d8460
)
tests: fix leak in systemclock test
author
Tim-Philipp Müller
<tim@centricular.com>
Sat, 8 Feb 2014 23:39:03 +0000
(23:39 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 8 Feb 2014 23:39:03 +0000
(23:39 +0000)
tests/check/gst/gstsystemclock.c
patch
|
blob
|
history
diff --git
a/tests/check/gst/gstsystemclock.c
b/tests/check/gst/gstsystemclock.c
index
455de71
..
86f012b
100644
(file)
--- 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);