* src/compose.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Fri, 20 Sep 2002 22:11:00 +0000 (22:11 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Fri, 20 Sep 2002 22:11:00 +0000 (22:11 +0000)
compose_send(): plug unnoticed memleak

ChangeLog.claws
configure.in
src/compose.c

index ac6c64d..7a34a72 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-21 [alfons]    0.8.2claws63
+
+       * src/compose.c
+               compose_send(): plug unnoticed memleak
+
 2002-09-20 [alfons]    0.8.2claws62
 
        * src/addr_compl.c
index cb2ed63..c5563da 100644 (file)
@@ -10,7 +10,7 @@ MINOR_VERSION=8
 MICRO_VERSION=2
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws62
+EXTRA_VERSION=claws63
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 3bfc03c..4a91ccd 100644 (file)
@@ -2846,6 +2846,7 @@ gint compose_send(Compose *compose)
        gint msgnum;
        FolderItem *folder;
        gint val;
+       gchar *msgpath;
 
        if (compose_check_entries(compose, TRUE) == FALSE)
                return -1;
@@ -2856,7 +2857,9 @@ gint compose_send(Compose *compose)
                return -1;
        }
        
-       val = procmsg_send_message_queue(folder_item_fetch_msg(folder, msgnum));
+       msgpath = folder_item_fetch_msg(folder, msgnum);
+       val = procmsg_send_message_queue(msgpath);
+       g_free(msgpath);
 
        folder_item_remove_msg(folder, msgnum);
        folderview_update_item(folder, TRUE);