From 71f512b570aaad983841de8c22e05cbb2563808f Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Sat, 13 Oct 2001 04:05:00 +0000 Subject: (flush_entry): free the conv string and make sure we remove all the the 2001-10-12 Larry Ewing (flush_entry): free the conv string and make sure we remove all the the items not all but the last one. svn path=/trunk/; revision=13652 --- e-util/e-iconv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'e-util') diff --git a/e-util/e-iconv.c b/e-util/e-iconv.c index c4f21960e1..a90b80b9f1 100644 --- a/e-util/e-iconv.c +++ b/e-util/e-iconv.c @@ -307,7 +307,7 @@ flush_entry(struct _iconv_cache *ic) in = (struct _iconv_cache_node *)ic->open.head; nn = in->next; - while (nn) { + while (in) { if (in->ip != (iconv_t)-1) { g_hash_table_remove(iconv_cache_open, in->ip); iconv_close(in->ip); @@ -316,6 +316,7 @@ flush_entry(struct _iconv_cache *ic) in = nn; nn = in->next; } + g_free(ic->conv); g_free(ic); } -- cgit v1.2.3