[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-346-gf6eff41a7

miras at claws-mail.org miras at claws-mail.org
Fri Oct 29 17:09:45 CET 2021


The branch, gtk3 has been updated
       via  f6eff41a7d3f0368198a671fd4b4e79089cbd066 (commit)
      from  cb6b97b6c43027330d2cbc19af86f53487cfecf2 (commit)

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


- Log -----------------------------------------------------------------
commit f6eff41a7d3f0368198a671fd4b4e79089cbd066
Author: Michael Rasmussen <mir at datanom.net>
Date:   Fri Oct 29 19:08:59 2021 +0200

    Fix CID 1493278
    
    Signed-off-by: Michael Rasmussen <mir at datanom.net>

diff --git a/src/plugins/smime/smime.c b/src/plugins/smime/smime.c
index 477f74c2a..5f8899e7e 100644
--- a/src/plugins/smime/smime.c
+++ b/src/plugins/smime/smime.c
@@ -443,7 +443,6 @@ static gint check_pkcs7_mime_sig(MimeInfo *mimeinfo,
 	mimeinfo->last_sig_check_task = NULL;
 
 	task_result = g_task_propagate_pointer(task, &error);
-	g_object_unref(task);
 	if (unref_cancellable)
 		g_object_unref(cancellable);
 
@@ -455,9 +454,11 @@ static gint check_pkcs7_mime_sig(MimeInfo *mimeinfo,
 	if (task_result == NULL) {
 		debug_print("sig check task propagated NULL task:%p GError: domain:%s code:%d message:\"%s\"\n",
 			task, g_quark_to_string(error->domain), error->code, error->message);
+                g_object_unref(task);
 		g_error_free(error);
 		return -1;
 	}
+	g_object_unref(task);
 
 	mimeinfo->sig_data = task_result->sig_data;
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list