Don't close iconv descriptor if it is opened

This commit is contained in:
Elias Naur 2004-12-14 19:12:56 +00:00
parent 5b54273d2c
commit b535bd0273
1 changed files with 3 additions and 1 deletions

View File

@ -96,8 +96,10 @@ void updateKeyboardGrab(void) {
}
static void closeUnicodeStructs() {
if (iconv_descriptor != (iconv_t)-1)
if (iconv_descriptor != (iconv_t)-1) {
iconv_close(iconv_descriptor);
iconv_descriptor = (iconv_t)-1;
}
if (xic != NULL) {
XDestroyIC(xic);
xic = NULL;