From: Andrej Kacian Date: Sun, 16 Jul 2017 15:37:16 +0000 (+0200) Subject: Fixed another memory leak in filtering pref dialog. X-Git-Tag: 3.16.0~92 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=959bf12ef3171d768f729ddcd9daefd8b6d9624a;hp=01cef7d47356e9705e181189467b83078f1269df Fixed another memory leak in filtering pref dialog. --- diff --git a/src/prefs_matcher.c b/src/prefs_matcher.c index 79e851d84..ee46b96e4 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));