diff --git a/src/core/meta-profiler.c b/src/core/meta-profiler.c index 1fceeaad7..740f38dfc 100644 --- a/src/core/meta-profiler.c +++ b/src/core/meta-profiler.c @@ -343,7 +343,7 @@ meta_profiler_unregister_thread (MetaProfiler *profiler, if (thread_info->main_context == main_context) { - profiler->threads = g_list_remove_link (profiler->threads, l); + profiler->threads = g_list_delete_link (profiler->threads, l); break; } }