mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
gstleaks.c: always log leaks listing
https://bugzilla.gnome.org/show_bug.cgi?id=789556
This commit is contained in:
parent
4c795924db
commit
f911fe4314
1 changed files with 13 additions and 5 deletions
|
@ -545,10 +545,15 @@ static gboolean
|
|||
log_leaked (GstLeaksTracer * self)
|
||||
{
|
||||
GList *ref, *leaks, *l;
|
||||
gboolean ret = FALSE;
|
||||
|
||||
GST_TRACE_OBJECT (self, "start listing currently alive objects");
|
||||
|
||||
leaks = create_leaks_list (self);
|
||||
if (!leaks)
|
||||
return FALSE;
|
||||
if (!leaks) {
|
||||
GST_TRACE_OBJECT (self, "No objects alive currently");
|
||||
goto done;
|
||||
}
|
||||
|
||||
for (l = leaks; l != NULL; l = g_list_next (l)) {
|
||||
Leak *leak = l->data;
|
||||
|
@ -569,7 +574,12 @@ log_leaked (GstLeaksTracer * self)
|
|||
|
||||
g_list_free_full (leaks, (GDestroyNotify) leak_free);
|
||||
|
||||
return TRUE;
|
||||
ret = TRUE;
|
||||
|
||||
done:
|
||||
GST_TRACE_OBJECT (self, "done listing currently alive objects");
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -650,9 +660,7 @@ sig_usr1_handler_foreach (gpointer data, gpointer user_data)
|
|||
GstLeaksTracer *tracer = data;
|
||||
|
||||
GST_OBJECT_LOCK (tracer);
|
||||
GST_TRACE_OBJECT (tracer, "start listing currently alive objects");
|
||||
log_leaked (tracer);
|
||||
GST_TRACE_OBJECT (tracer, "done listing currently alive objects");
|
||||
GST_OBJECT_UNLOCK (tracer);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue