From 614383728baab5b41175d2301f241b985643a4fc Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Fri, 15 Aug 2025 09:08:28 -0700 Subject: [PATCH] Fix --- ISLE/isleapp.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ISLE/isleapp.cpp b/ISLE/isleapp.cpp index be89b97b..1b1af42a 100644 --- a/ISLE/isleapp.cpp +++ b/ISLE/isleapp.cpp @@ -1207,10 +1207,11 @@ bool IsleApp::LoadConfig() iniparser_freedict(dict); - if constexpr (std::is_same_v) { - SDL_free(prefPath); - } - + [](auto path) { + if constexpr (std::is_same_v) { + SDL_free(path); + } + }(prefPath); return true; }