profiler: Actually free ThreadInfo when a thread unregisters

The previous commit only freed the list node.

Fixes: a731017ec ("profiler: Free ThreadInfo when a thread unregisters")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3078>
This commit is contained in:
Dor Askayo 2023-06-14 23:52:09 +03:00
parent edc5d2a933
commit a738132486

View File

@ -343,6 +343,7 @@ meta_profiler_unregister_thread (MetaProfiler *profiler,
if (thread_info->main_context == main_context)
{
thread_info_free (thread_info);
profiler->threads = g_list_delete_link (profiler->threads, l);
break;
}