[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-262-g42d7514b2

wwp at claws-mail.org wwp at claws-mail.org
Wed Sep 29 16:00:44 CEST 2021


The branch, gtk3 has been updated
       via  42d7514b2af10ea7784cd8196d153d01f88efa0e (commit)
      from  753698d5eb36b9ce7311b6753111cfb613a4bf4d (commit)

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


- Log -----------------------------------------------------------------
commit 42d7514b2af10ea7784cd8196d153d01f88efa0e
Author: wwp <subscript at free.fr>
Date:   Wed Sep 29 16:00:18 2021 +0200

    Fix CID 1491149: resource leak.

diff --git a/src/foldersel.c b/src/foldersel.c
index e0937a496..19e605451 100644
--- a/src/foldersel.c
+++ b/src/foldersel.c
@@ -217,10 +217,13 @@ static gboolean foldersel_search_name_func(GtkTreeModel *model, gint column,
 		gtk_tree_model_get(model, iter, column, &store_string, -1);
 	}
 
-	if (!store_string || !key)
+	if (!store_string)
 		return FALSE;
 
-	retval = (strcasestr(store_string, key) == NULL);
+	if (!key)
+		retval = FALSE;
+	else
+		retval = (strcasestr(store_string, key) == NULL);
 
 	g_free(store_string);
 

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list