aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-option.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-option.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-option.c')
-rw-r--r--filter/filter-option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/filter-option.c b/filter/filter-option.c
index aa26741ac9..a5e0b5671d 100644
--- a/filter/filter-option.c
+++ b/filter/filter-option.c
@@ -24,7 +24,6 @@
#include <glib.h>
#include <gtk/gtkmenuitem.h>
#include <gtk/gtkoptionmenu.h>
-#include <gnome-xml/xmlmemory.h>
#include <libgnome/gnome-defs.h>
#include <libgnome/gnome-i18n.h>
#include <gal/widgets/e-unicode.h>
@@ -234,6 +233,7 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
char *value;
d(printf ("Decoding option from xml\n"));
+ xmlFree (fe->name);
fe->name = xmlGetProp (node, "name");
value = xmlGetProp (node, "value");
if (value) {