From bea2fdc12bd44365385a60ba3efb089036fd588b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 12 Jun 2023 11:52:32 +0200 Subject: [PATCH] profiler: Add missing call to stop profiling Otherwise the profiling backend (cogl-trace.c) doesn't actually stop, and will complain if we try to start it up again. Fixes: ab39eaf131 ("cogl/trace: Make global start/stop more explicit") Part-of: --- src/core/meta-profiler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/meta-profiler.c b/src/core/meta-profiler.c index ae703e9b5..27719430b 100644 --- a/src/core/meta-profiler.c +++ b/src/core/meta-profiler.c @@ -196,6 +196,8 @@ handle_stop (MetaDBusSysprof3Profiler *dbus_profiler, g_list_free_full (profiler->threads, (GDestroyNotify) thread_info_free); g_mutex_unlock (&profiler->mutex); + cogl_stop_tracing (); + profiler->running = FALSE; g_debug ("Stopping profiler");