Commit 7522e2cc authored by Wim Taymans's avatar Wim Taymans Committed by Wim Taymans
Browse files

trace: include type name in leaked objects

When we are dealing with a GObject, print the type name along with
the pointer for easier debugging.
parent 381d35fd
......@@ -471,7 +471,13 @@ gst_alloc_trace_print (const GstAllocTrace * trace)
mem_live = trace->mem_live;
while (mem_live) {
g_print ("%-22.22s : %p\n", "", mem_live->data);
gpointer data = mem_live->data;
if (G_IS_OBJECT (data)) {
g_print ("%-22.22s : %p\n", g_type_name (G_OBJECT_TYPE (data)), data);
} else {
g_print ("%-22.22s : %p\n", "", data);
}
mem_live = mem_live->next;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment