commit 959bf12ef3171d768f729ddcd9daefd8b6d9624a
parent 01cef7d47356e9705e181189467b83078f1269df
Author: Andrej Kacian <ticho@claws-mail.org>
Date: Sun, 16 Jul 2017 17:37:16 +0200
Fixed another memory leak in filtering pref dialog.
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git 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));