From 7115d223a67988114bd0ba179fdcabdd84ad0205 Mon Sep 17 00:00:00 2001 From: Alfons Hoogervorst Date: Fri, 20 Sep 2002 22:11:00 +0000 Subject: [PATCH] * src/compose.c compose_send(): plug unnoticed memleak --- ChangeLog.claws | 5 +++++ configure.in | 2 +- src/compose.c | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog.claws b/ChangeLog.claws index ac6c64d76..7a34a722b 100644 --- a/ChangeLog.claws +++ b/ChangeLog.claws @@ -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 diff --git a/configure.in b/configure.in index cb2ed631b..c5563da58 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/src/compose.c b/src/compose.c index 3bfc03cd0..4a91ccde6 100644 --- a/src/compose.c +++ b/src/compose.c @@ -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); -- 2.25.1