gstsystemclock: Mark the clock as MAY_BE_LEAKED

It is freed in gst_deinit(), but otherwise it is leaked.
This commit is contained in:
Nirbheek Chauhan 2019-06-21 10:41:18 +05:30 committed by Nirbheek Chauhan
parent 4ba6898f24
commit f336fdd088

View file

@ -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 {