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:
4ba6898
)
gstsystemclock: Mark the clock as MAY_BE_LEAKED
author
Nirbheek Chauhan
<nirbheek@centricular.com>
Fri, 21 Jun 2019 05:11:18 +0000
(10:41 +0530)
committer
Nirbheek Chauhan
<nirbheek.chauhan@gmail.com>
Mon, 1 Jul 2019 11:51:46 +0000
(11:51 +0000)
It is freed in gst_deinit(), but otherwise it is leaked.
gst/gstsystemclock.c
patch
|
blob
|
history
diff --git
a/gst/gstsystemclock.c
b/gst/gstsystemclock.c
index
73dbfb4
..
df155d7
100644
(file)
--- a/
gst/gstsystemclock.c
+++ b/
gst/gstsystemclock.c
@@
-353,6
+353,7
@@
gst_system_clock_obtain (void)
/* Clear floating flag */
gst_object_ref_sink (clock);
+ GST_OBJECT_FLAG_SET (clock, GST_OBJECT_FLAG_MAY_BE_LEAKED);
_the_system_clock = clock;
g_mutex_unlock (&_gst_sysclock_mutex);
} else {