diff --git a/README b/README index 2853364..15e2307 100644 --- a/README +++ b/README @@ -39,6 +39,7 @@ GOBJECT_LIST_DISPLAY: • ‘refs’: Print information about every reference increment and decrement on objects. • ‘backtrace’: Include backtraces with every printed message. + • ‘tracerefs’: At exit, for each object still alive, print a call tree. • ‘all’: All of the above. GOBJECT_LIST_FILTER: diff --git a/gobject-list.c b/gobject-list.c index b77c4ec..966130f 100644 --- a/gobject-list.c +++ b/gobject-list.c @@ -411,7 +411,7 @@ _object_finalized (G_GNUC_UNUSED gpointer data, g_hash_table_remove (gobject_list_state.objects, obj); g_hash_table_remove (gobject_list_state.added, obj); #ifdef WITH_ORIGINS_TRACE - g_hash_table_remove (gobject_list_state.origins, obj); + g_hash_table_remove (gobject_list_state.origins, G_OBJECT_TYPE_NAME (obj)); #endif G_UNLOCK (gobject_list);