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:
parent
edc5d2a933
commit
a738132486
@ -343,6 +343,7 @@ meta_profiler_unregister_thread (MetaProfiler *profiler,
|
|||||||
|
|
||||||
if (thread_info->main_context == main_context)
|
if (thread_info->main_context == main_context)
|
||||||
{
|
{
|
||||||
|
thread_info_free (thread_info);
|
||||||
profiler->threads = g_list_delete_link (profiler->threads, l);
|
profiler->threads = g_list_delete_link (profiler->threads, l);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user