[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-252-gbbe3de93c

wwp at claws-mail.org wwp at claws-mail.org
Tue Sep 28 17:17:26 CEST 2021


The branch, gtk3 has been updated
       via  bbe3de93cd452d461ac905bdc22b7be064b73a78 (commit)
      from  ecb3e3e748be5a6e89056d31960abde19fe209bd (commit)

Summary of changes:
 src/plugins/attachwarner/attachwarner.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit bbe3de93cd452d461ac905bdc22b7be064b73a78
Author: wwp <subscript at free.fr>
Date:   Tue Sep 28 17:16:57 2021 +0200

    Fix CID 1491146: resource leak.

diff --git a/src/plugins/attachwarner/attachwarner.c b/src/plugins/attachwarner/attachwarner.c
index 56b1125ad..fbd69cbef 100644
--- a/src/plugins/attachwarner/attachwarner.c
+++ b/src/plugins/attachwarner/attachwarner.c
@@ -190,6 +190,7 @@ static gboolean attwarn_before_send_hook(gpointer source, gpointer data)
 {
 	Compose *compose = (Compose *)source;
 	AttachWarnerMention *mention = NULL;
+	gboolean ret = FALSE; /* continue sending if FALSE */
 
 	debug_print("AttachWarner invoked\n");
 	if (compose->batch)
@@ -221,7 +222,7 @@ static gboolean attwarn_before_send_hook(gpointer source, gpointer data)
 		g_free(message);
 		g_free(bold_text);
 		if (aval != G_ALERTALTERNATE)
-			return TRUE;
+			ret = TRUE;	
 	}
 	if (mention != NULL) {
 		if (mention->context != NULL)
@@ -229,7 +230,7 @@ static gboolean attwarn_before_send_hook(gpointer source, gpointer data)
 		g_free(mention);
 	}
 
-	return FALSE;	/* continue sending */
+	return ret;
 }
 
 /**

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list