From a1bf7aa6c41783b0d8f26a9c25e18e1ad7372793 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sun, 27 Aug 2000 00:59:45 +0000 Subject: Use `g_free()' instead of `free()' in the `header_decode_text()' helper function. svn path=/trunk/; revision=5061 --- camel/ChangeLog | 5 +++++ camel/camel-mime-utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index a5edabe6e9..0406a49168 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2000-08-26 Ettore Perazzoli + + * camel-mime-utils.c (header_decode_text): Use `g_free()', not + `free()', to free `decword'. + 2000-08-25 Peter Williams * camel.c (camel_init): Don't call unicode_init; code in e-util diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 781ae59c23..90d7496ce3 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -932,7 +932,7 @@ header_decode_text(const char *in, int inlen) if (decword) { out = g_string_append_len(out, inptr, encstart-inptr); out = g_string_append_len(out, decword, strlen(decword)); - free(decword); + g_free (decword); } else { out = g_string_append_len(out, inptr, encend-inptr+2); } -- cgit