[Commits] [SCM] claws branch, master, updated. 3.18.0-204-g34d058d8e
wwp at claws-mail.org
wwp at claws-mail.org
Wed Sep 29 16:00:36 CEST 2021
The branch, master has been updated
via 34d058d8e5d21fac7acce8e31f05f2c044150bc9 (commit)
from b29415ca69ac2e3036bb0b20c0155309107d9b1e (commit)
Summary of changes:
src/foldersel.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 34d058d8e5d21fac7acce8e31f05f2c044150bc9
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 7d054d023..42d33ef91 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