From 22daf7826d1c16399e0e65b263356339692a410f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Thu, 4 Dec 2025 14:16:15 +0200 Subject: [PATCH] Fix profiler cleanup with `--test`. --- main/main.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/main.h b/main/main.h index e8d88d95452..653461ea56c 100644 --- a/main/main.h +++ b/main/main.h @@ -93,6 +93,7 @@ public: bool run_test = false; \ int return_code = Main::test_entrypoint(argc, argv, run_test); \ if (run_test) { \ + godot_cleanup_profiler(); \ return return_code; \ } @@ -100,5 +101,6 @@ public: bool run_test = false; \ int return_code = Main::test_entrypoint(argc, argv, run_test); \ if (run_test) { \ + godot_cleanup_profiler(); \ return return_code; \ }