[Commits] [SCM] claws branch, master, updated. 3.15.0-111-g01cef7d
ticho at claws-mail.org
ticho at claws-mail.org
Sun Jul 16 14:39:42 CEST 2017
The branch, master has been updated
via 01cef7d47356e9705e181189467b83078f1269df (commit)
from cfbe405f11fd8e87b13c34ba4c00a4ee5cffcd32 (commit)
Summary of changes:
src/prefs_filtering.c | 4 ++++
1 file changed, 4 insertions(+)
- Log -----------------------------------------------------------------
commit 01cef7d47356e9705e181189467b83078f1269df
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Sun Jul 16 14:39:21 2017 +0200
Fixed two tiny memory leaks in filtering pref dialog.
diff --git a/src/prefs_filtering.c b/src/prefs_filtering.c
index 7d969da..2376cb1 100644
--- 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);
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list