[evolution] Bug 750560 - EFilterInput is storing multiple values instead of one



commit 21b1070c48263ecb4c0a045644f1a80a3edfe2c5
Author: Milan Crha <mcrha redhat com>
Date:   Mon Jun 8 14:25:16 2015 +0200

    Bug 750560 - EFilterInput is storing multiple values instead of one

 e-util/e-filter-input.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-filter-input.c b/e-util/e-filter-input.c
index 3772ce1..dac0d5b 100644
--- a/e-util/e-filter-input.c
+++ b/e-util/e-filter-input.c
@@ -300,6 +300,9 @@ filter_input_clone (EFilterElement *element)
        clone_input->allow_empty = input->allow_empty;
        clone_input->code_gen_func = g_strdup (input->code_gen_func);
 
+       g_list_free_full (clone_input->values, g_free);
+       clone_input->values = NULL;
+
        for (link = input->values; link != NULL; link = g_list_next (link)) {
                clone_input->values = g_list_prepend (clone_input->values, g_strdup (link->data));
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]