call iconv_close() to free iconv resources
This commit is contained in:
parent
03d0d5e882
commit
5acf27c1b4
11
src/main.c
11
src/main.c
@ -1060,6 +1060,17 @@ void Program_shutdown(void)
|
||||
|
||||
Uninit_text();
|
||||
|
||||
#ifdef ENABLE_FILENAMES_ICONV
|
||||
if (cd != (iconv_t)-1)
|
||||
iconv_close(cd);
|
||||
if (cd_inv != (iconv_t)-1)
|
||||
iconv_close(cd_inv);
|
||||
if (cd_utf16 != (iconv_t)-1)
|
||||
iconv_close(cd_utf16);
|
||||
if (cd_utf16_inv != (iconv_t)-1)
|
||||
iconv_close(cd_utf16_inv);
|
||||
#endif
|
||||
|
||||
SDL_Quit();
|
||||
|
||||
#if defined(__GP2X__) || defined(__WIZ__) || defined(__CAANOO__)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user