tracers: leaks: log when tracer is exiting

Useful when debugging leaks to make sure that the tracer is properly
finalized (gst_deinit() being actually called, etc).

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/828>
This commit is contained in:
Guillaume Desmottes 2021-05-25 13:26:11 +02:00 committed by GStreamer Marge Bot
parent 81778f9d93
commit aaaf85054f

View file

@ -730,6 +730,8 @@ gst_leaks_tracer_finalize (GObject * object)
GHashTableIter iter; GHashTableIter iter;
gpointer obj; gpointer obj;
GST_DEBUG_OBJECT (self, "destroying tracer, checking for leaks");
self->done = TRUE; self->done = TRUE;
/* Tracers are destroyed as part of gst_deinit() so now is a good time to /* Tracers are destroyed as part of gst_deinit() so now is a good time to