From ce6b506b02942a8248e62f34b195b55699221a69 Mon Sep 17 00:00:00 2001 From: Esther1024 Date: Wed, 21 May 2025 04:08:07 +0000 Subject: [PATCH] microprofiler memleak fix (#123) some 50mb being leaked; may as well Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/123 Co-authored-by: Esther1024 Co-committed-by: Esther1024 --- externals/microprofile/microprofile.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/externals/microprofile/microprofile.h b/externals/microprofile/microprofile.h index 8f75a25aa8..15a1ddc980 100644 --- a/externals/microprofile/microprofile.h +++ b/externals/microprofile/microprofile.h @@ -1141,6 +1141,9 @@ void MicroProfileShutdown() MicroProfileWebServerStop(); MicroProfileStopContextSwitchTrace(); MicroProfileGpuShutdown(); + for (uint32_t i = 0; i < S.nNumLogs; ++i) { + delete S.Pool[i]; + } } #ifdef MICROPROFILE_IOS