aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-input.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-08-08 17:39:56 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-08-08 17:39:56 +0800
commitbbfda4227e6790fa945368cb5d4cb3d24e4da3d7 (patch)
tree6a451fa92a651f0750f0001e49d8b38a28c90e96 /filter/filter-input.c
parente835aa2faf3bf45c930924aaa60a134cdd269c35 (diff)
downloadgsoc2013-evolution-bbfda4227e6790fa945368cb5d4cb3d24e4da3d7.tar.gz
gsoc2013-evolution-bbfda4227e6790fa945368cb5d4cb3d24e4da3d7.tar.zst
gsoc2013-evolution-bbfda4227e6790fa945368cb5d4cb3d24e4da3d7.zip
Properly free the list of parts, and the private data.
2001-08-07 Not Zed <NotZed@Ximian.com> * filter-rule.c (filter_rule_finalise): Properly free the list of parts, and the private data. (FilterRulePrivate): Remove unused 'parts' member. * filter-option.c (free_option): For freeing options. (filter_option_finalise): Free options list. * filter-element.c (filter_element_finalise): free name. * filter-input.c (filter_input_finalise): Free type and values list. * filter-context.c (filter_context_finalise): Free the actions. * rule-context.c (rule_context_finalise): Remove the totally weird arsed *_set_list free code. (free_part_set): (free_rule_set): Use this to free stuff using g_list_foreach. (rule_context_finalise): Free the error string. (rule_context_finalise): Free the rules and parts. svn path=/trunk/; revision=11774
Diffstat (limited to 'filter/filter-input.c')
-rw-r--r--filter/filter-input.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/filter/filter-input.c b/filter/filter-input.c
index ee531b9ed0..e25d3e40ee 100644
--- a/filter/filter-input.c
+++ b/filter/filter-input.c
@@ -120,8 +120,12 @@ static void
filter_input_finalise (GtkObject *obj)
{
FilterInput *o = (FilterInput *)obj;
-
- o = o;
+
+ g_free(o->type);
+ g_list_foreach(o->values, (GFunc)g_free, NULL);
+ g_list_free(o->values);
+
+ g_free(o->priv);
((GtkObjectClass *)(parent_class))->finalize(obj);
}
@@ -269,7 +273,8 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
gchar *decstr;
str = xmlNodeGetContent (n);
decstr = e_utf8_xml1_decode (str);
- if (str) xmlFree (str);
+ if (str)
+ xmlFree (str);
d(printf (" '%s'\n", decstr));
fi->values = g_list_append (fi->values, decstr);
} else {