From: John Darrington Date: Thu, 9 Apr 2009 00:51:24 +0000 (+0800) Subject: Fixed crash on quit X-Git-Tag: v0.7.3~169 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20b64bf74741594e1f1767c0fd12c5f5da5ea58c;p=pspp-builds.git Fixed crash on quit --- diff --git a/src/libpspp/i18n.c b/src/libpspp/i18n.c index 74ec1f1f..293276c6 100644 --- a/src/libpspp/i18n.c +++ b/src/libpspp/i18n.c @@ -263,9 +263,12 @@ void i18n_done (void) { struct hmapx_node *node; - iconv_t conv; - HMAPX_FOR_EACH (conv, node, &map) - iconv_close (conv); + struct converter *cvtr; + HMAPX_FOR_EACH (cvtr, node, &map) + { + iconv_close (cvtr->conv); + free (cvtr); + } hmapx_destroy (&map);