2005-01-31 [colin] 1.0.0cvs24
authorColin Leroy <colin@colino.net>
Mon, 31 Jan 2005 13:23:45 +0000 (13:23 +0000)
committerColin Leroy <colin@colino.net>
Mon, 31 Jan 2005 13:23:45 +0000 (13:23 +0000)
* src/compose.c
Fix MsgInfo reference leak

ChangeLog.claws
PATCHSETS
configure.ac
src/compose.c

index 187c328..620b861 100644 (file)
@@ -1,3 +1,8 @@
+2005-01-31 [colin]     1.0.0cvs24
+
+       * src/compose.c
+               Fix MsgInfo reference leak
+
 2005-01-28 [colin]     1.0.0cvs23
 
        * src/folderview.c
index 9dca0d7..929479b 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.176 -r 1.177 src/procmsg.c; cvs diff -u -r 1.470 -r 1.471 src/compose.c; ) > 1.0.0cvs21.patchset
 ( cvs diff -u -r 1.257 -r 1.258 src/folderview.c; ) > 1.0.0cvs22.patchset
 ( cvs diff -u -r 1.258 -r 1.259 src/folderview.c; ) > 1.0.0cvs23.patchset
+( cvs diff -u -r 1.471 -r 1.472 src/compose.c; ) > 1.0.0cvs24.patchset
index d77be92..afbb710 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=0
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=23
+EXTRA_VERSION=24
 EXTRA_RELEASE=
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
index c74a952..23f2031 100644 (file)
@@ -6924,7 +6924,8 @@ void compose_reply_from_messageview(MessageView *msgview, GSList *msginfo_list,
 {
        gchar *body;
        GSList *new_msglist = NULL;
-       
+       MsgInfo *tmp_msginfo = NULL;
+
        g_return_if_fail(msgview != NULL);
 
        g_return_if_fail(msginfo_list != NULL);
@@ -6936,7 +6937,7 @@ void compose_reply_from_messageview(MessageView *msgview, GSList *msginfo_list,
                if (mimeinfo != NULL && mimeinfo->type == MIMETYPE_MESSAGE && 
                    !g_strcasecmp(mimeinfo->subtype, "rfc822")) {
                        
-                       MsgInfo *tmp_msginfo = procmsg_msginfo_new_from_mimeinfo(
+                       tmp_msginfo = procmsg_msginfo_new_from_mimeinfo(
                                                orig_msginfo, mimeinfo);
                        if (tmp_msginfo != NULL) {
                                new_msglist = g_slist_append(NULL, tmp_msginfo);
@@ -6948,6 +6949,7 @@ void compose_reply_from_messageview(MessageView *msgview, GSList *msginfo_list,
 
        if (new_msglist) {
                compose_reply_mode((ComposeMode)action, new_msglist, body);
+               procmsg_msginfo_free(tmp_msginfo);
                g_slist_free(new_msglist);
        } else
                compose_reply_mode((ComposeMode)action, msginfo_list, body);