aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-10-13 12:05:00 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-10-13 12:05:00 +0800
commit71f512b570aaad983841de8c22e05cbb2563808f (patch)
tree295900721488e60e9e724e0be19fae32d049ef1a
parent2d46a244382329ecf71c553e8e05bde1ccd5e667 (diff)
downloadgsoc2013-evolution-71f512b570aaad983841de8c22e05cbb2563808f.tar
gsoc2013-evolution-71f512b570aaad983841de8c22e05cbb2563808f.tar.gz
gsoc2013-evolution-71f512b570aaad983841de8c22e05cbb2563808f.tar.bz2
gsoc2013-evolution-71f512b570aaad983841de8c22e05cbb2563808f.tar.lz
gsoc2013-evolution-71f512b570aaad983841de8c22e05cbb2563808f.tar.xz
gsoc2013-evolution-71f512b570aaad983841de8c22e05cbb2563808f.tar.zst
gsoc2013-evolution-71f512b570aaad983841de8c22e05cbb2563808f.zip
(flush_entry): free the conv string and make sure we remove all the the
2001-10-12 Larry Ewing <lewing@ximian.com> (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
-rw-r--r--e-util/e-iconv.c3
1 files changed, 2 insertions, 1 deletions
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);
}