Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

microprofiler memleak fix (#123)

Esther1024ce6b506b0294
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