* src/filter.c
authorChristoph Hohmann <reboot@gmx.ch>
Thu, 12 Sep 2002 21:27:08 +0000 (21:27 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Thu, 12 Sep 2002 21:27:08 +0000 (21:27 +0000)
        o allocate 1 elements of FolderItem not 0
        o free memory used by dummy folder

ChangeLog.claws
configure.in
src/filter.c

index e915873..effb701 100644 (file)
@@ -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
 2002-09-12 [colin]     0.8.2claws43
 
        * src/compose.c
index 0de8279..d7c6bd9 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
 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
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 67d64a5..aeb567a 100644 (file)
@@ -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) {
                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;
                                        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;
        procheader_header_list_destroy(hlist);
 
        return dest_folder;