[Commits] [SCM] claws branch, master, updated. 3.15.0-112-g959bf12

ticho at claws-mail.org ticho at claws-mail.org
Sun Jul 16 17:37:31 CEST 2017


The branch, master has been updated
       via  959bf12ef3171d768f729ddcd9daefd8b6d9624a (commit)
      from  01cef7d47356e9705e181189467b83078f1269df (commit)

Summary of changes:
 src/prefs_matcher.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 959bf12ef3171d768f729ddcd9daefd8b6d9624a
Author: Andrej Kacian <ticho at claws-mail.org>
Date:   Sun Jul 16 17:37:16 2017 +0200

    Fixed another memory leak in filtering pref dialog.

diff --git a/src/prefs_matcher.c b/src/prefs_matcher.c
index 79e851d..ee46b96 100644
--- a/src/prefs_matcher.c
+++ b/src/prefs_matcher.c
@@ -1034,12 +1034,14 @@ static MatcherList *prefs_matcher_get_list(void)
 		if (is_valid) {
 			/* tmp = matcher_str; */
 			prop = matcher_parser_get_prop(matcher_str);
-			g_free(matcher_str);
-			if (prop == NULL)
+			if (prop == NULL) {
+				g_free(matcher_str);
 				break;
+			}
 			
 			matcher_list = g_slist_append(matcher_list, prop);
 		}
+		g_free(matcher_str);
 	} while (gtk_tree_model_iter_next(model, &iter));
 
 	bool_and = gtk_combo_box_get_active(GTK_COMBO_BOX(matcher.bool_op_combo));

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list