diff options
author | Dan Winship <danw@src.gnome.org> | 2001-04-19 02:04:13 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-04-19 02:04:13 +0800 |
commit | 0c90cd7ddae8e37d4c4ab85a2b2460b4d5dd0902 (patch) | |
tree | c4d01056c13f914755c7f6393d31ba841a0222ba /filter/filter-input.c | |
parent | 765e7194f1459f226b91ffc027024553e2d1a64b (diff) | |
download | gsoc2013-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-input.c')
-rw-r--r-- | filter/filter-input.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/filter/filter-input.c b/filter/filter-input.c index 6c06849d2b..da04195f62 100644 --- a/filter/filter-input.c +++ b/filter/filter-input.c @@ -27,7 +27,6 @@ #include <gtk/gtkobject.h> #include <gtk/gtkwidget.h> -#include <gnome-xml/xmlmemory.h> #include <libgnome/gnome-defs.h> #include <libgnome/gnome-i18n.h> #include <libgnomeui/gnome-dialog.h> @@ -255,14 +254,15 @@ xml_decode (FilterElement *fe, xmlNodePtr node) char *name, *str, *type; xmlNodePtr n; - type = fi->type ? fi->type : "string"; + name = xmlGetProp (node, "name"); + type = xmlGetProp (node, "type"); d(printf("Decoding %s from xml %p\n", type, fe)); - - name = xmlGetProp (node, "name"); d(printf ("Name = %s\n", name)); + xmlFree (fe->name); fe->name = name; - fi->type = xmlGetProp (node, "type"); + xmlFree (fi->type); + fi->type = type; n = node->childs; while (n) { if (!strcmp (n->name, type)) { |