talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 01cef7d47356e9705e181189467b83078f1269df
parent cfbe405f11fd8e87b13c34ba4c00a4ee5cffcd32
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Sun, 16 Jul 2017 14:39:21 +0200

Fixed two tiny memory leaks in filtering pref dialog.

Diffstat:
Msrc/prefs_filtering.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/prefs_filtering.c b/src/prefs_filtering.c @@ -960,6 +960,8 @@ static void prefs_filtering_set_list(void) g_free(filtering_str); if (prop) { prop->enabled = enabled; + if (prop->name != NULL) + g_free(prop->name); prop->name = name; prop->account_id = account_id; prefs_filtering = @@ -1936,6 +1938,8 @@ static void prefs_filtering_select_row(GtkTreeView *list_view, GtkTreePath *path prop = matcher_parser_get_filtering(filtering_str); if (prop) { + if (prop->name != NULL) + g_free(prop->name); prop->name = g_strdup(name); prop->account_id = account_id; prefs_filtering_select_set(prop);