From 5897ad09f034ef6289661b8d3ebe4d87c63b3580 Mon Sep 17 00:00:00 2001 From: HarrievG <Harry@vrknight.eu> Date: Sun, 18 Jul 2021 23:34:09 +0200 Subject: [PATCH] correctly reset iconvDesc --- neo/sys/events.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/neo/sys/events.cpp b/neo/sys/events.cpp index 6e78f63c..3bc05ead 100644 --- a/neo/sys/events.cpp +++ b/neo/sys/events.cpp @@ -536,6 +536,7 @@ void Sys_ShutdownInput() { mouse_polls.Clear(); #if SDL_VERSION_ATLEAST(2, 0, 0) SDL_iconv_close( iconvDesc ); // used by utf8ToISO8859_1() + iconvDesc = ( SDL_iconv_t ) -1; #endif }