gstsystemclock: Mark the clock as MAY_BE_LEAKED
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 21 Jun 2019 05:11:18 +0000 (10:41 +0530)
committerNirbheek 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

index 73dbfb4..df155d7 100644 (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 {