From a738132486ce840440d008e3e8b1c6d43fb6a946 Mon Sep 17 00:00:00 2001 From: Dor Askayo Date: Wed, 14 Jun 2023 23:52:09 +0300 Subject: [PATCH] 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: --- src/core/meta-profiler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/meta-profiler.c b/src/core/meta-profiler.c index 740f38dfc..c1526c95f 100644 --- a/src/core/meta-profiler.c +++ b/src/core/meta-profiler.c @@ -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; }