aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-datespec.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-04-19 02:04:13 +0800
committerDan Winship <danw@src.gnome.org>2001-04-19 02:04:13 +0800
commit0c90cd7ddae8e37d4c4ab85a2b2460b4d5dd0902 (patch)
treec4d01056c13f914755c7f6393d31ba841a0222ba /filter/filter-datespec.c
parent765e7194f1459f226b91ffc027024553e2d1a64b (diff)
downloadgsoc2013-evolution-0c90cd7ddae8e37d4c4ab85a2b2460b4d5dd0902.tar.gz
gsoc2013-evolution-0c90cd7ddae8e37d4c4ab85a2b2460b4d5dd0902.tar.zst
gsoc2013-evolution-0c90cd7ddae8e37d4c4ab85a2b2460b4d5dd0902.zip
Plug memory leaks.
* filter-colour.c, filter-datespec.c, filter-folder.c, filter-input.c, filter-option.c, filter-rule.c, filter-score.c, filter-source.c, score-rule.c (xml_decode): Plug memory leaks. * rule-context.c (rule_context_finalise): Implement. Free stuff. * filter-element.h: #include <gnome-xml/xmlmemory.h> here for xmlFree * filter-filter.c, filter-part.c: Remove xmlmemory.h #include svn path=/trunk/; revision=9451
Diffstat (limited to 'filter/filter-datespec.c')
-rw-r--r--filter/filter-datespec.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/filter/filter-datespec.c b/filter/filter-datespec.c
index 49027d2afd..857194ebb3 100644
--- a/filter/filter-datespec.c
+++ b/filter/filter-datespec.c
@@ -244,6 +244,7 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
d(printf ("Decoding datespec from xml %p\n", fe));
+ xmlFree (fe->name);
fe->name = xmlGetProp (node, "name");
n = node->childs;
@@ -251,10 +252,10 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
if (!strcmp (n->name, "datespec")) {
val = xmlGetProp (n, "type");
fds->type = atoi (val);
- g_free (val);
+ xmlFree (val);
val = xmlGetProp (n, "value");
fds->value = atoi (val);
- g_free (val);
+ xmlFree (val);
break;
}
n = n->next;