From: Christoph Hohmann Date: Thu, 12 Sep 2002 21:27:08 +0000 (+0000) Subject: * src/filter.c X-Git-Tag: rel_0_8_3~29 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=8bde3ba72ca588929703b6b1cebed69689189fbd * src/filter.c o allocate 1 elements of FolderItem not 0 o free memory used by dummy folder --- diff --git a/ChangeLog.claws b/ChangeLog.claws index e91587306..effb70191 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -1,3 +1,9 @@ +2002-09-12 [christoph] 0.8.2claws44 + + * src/filter.c + o allocate 1 elements of FolderItem not 0 + o free memory used by dummy folder + 2002-09-12 [colin] 0.8.2claws43 * src/compose.c diff --git a/configure.in b/configure.in index 0de8279ae..d7c6bd9e9 100644 --- a/configure.in +++ b/configure.in @@ -8,7 +8,7 @@ MINOR_VERSION=8 MICRO_VERSION=2 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=claws43 +EXTRA_VERSION=claws44 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION dnl set $target diff --git a/src/filter.c b/src/filter.c index 67d64a5d4..aeb567a95 100644 --- a/src/filter.c +++ b/src/filter.c @@ -52,7 +52,7 @@ FolderItem *filter_get_dest_folder(GSList *fltlist, const gchar *file) if (filter_match_condition(filter, hlist)) { if (filter->action == FLT_NOTRECV) { if (!dummy) { - dummy = g_new0(FolderItem, 0); + dummy = g_new0(FolderItem, 1); dummy->path = g_strdup(FILTER_NOT_RECEIVE); } dest_folder = dummy; @@ -63,6 +63,11 @@ FolderItem *filter_get_dest_folder(GSList *fltlist, const gchar *file) } } + if (dummy != NULL) { + g_free(dummy->path); + g_free(dummy); + } + procheader_header_list_destroy(hlist); return dest_folder;