* 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 e91587306a19e0cd5276b81004f4228a6b1c4261..effb70191b5c2b8d2893054bdc9d884109c170d7 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 0de8279ae4437820c702a28976254c0881fa0893..d7c6bd9e9b8df270648a097ed5319e1f25f6f4f7 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 67d64a5d441bd77a136a1cd70ecd166676ed2def..aeb567a954df7ec59a204a684d8ee6bef3f2937b 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;