[Commits] [SCM] claws branch, gtk3tree, updated. 4.0.0-399-g3caeca9fb

paul at claws-mail.org paul at claws-mail.org
Wed Nov 3 11:32:46 UTC 2021


The branch, gtk3tree has been updated
       via  3caeca9fbd0870f679da2a092c00f95543349252 (commit)
      from  85739c8e56468ec73c41a17c1c1eb051a0df03cb (commit)

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


- Log -----------------------------------------------------------------
commit 3caeca9fbd0870f679da2a092c00f95543349252
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