aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-folder.c
diff options
context:
space:
mode:
authorRadek Doulik <rodo@ximian.com>2001-08-09 00:32:42 +0800
committerRadek Doulik <rodo@src.gnome.org>2001-08-09 00:32:42 +0800
commit02048d1c08f3daa31e07c5681e81de2c918f4251 (patch)
tree6d2a5e6ccf3b9b84e4f94a9215690041ab7ad2d9 /filter/filter-folder.c
parentec7b287514d9577597e69e78e5b8611eea34e37f (diff)
downloadgsoc2013-evolution-02048d1c08f3daa31e07c5681e81de2c918f4251.tar
gsoc2013-evolution-02048d1c08f3daa31e07c5681e81de2c918f4251.tar.gz
gsoc2013-evolution-02048d1c08f3daa31e07c5681e81de2c918f4251.tar.bz2
gsoc2013-evolution-02048d1c08f3daa31e07c5681e81de2c918f4251.tar.lz
gsoc2013-evolution-02048d1c08f3daa31e07c5681e81de2c918f4251.tar.xz
gsoc2013-evolution-02048d1c08f3daa31e07c5681e81de2c918f4251.tar.zst
gsoc2013-evolution-02048d1c08f3daa31e07c5681e81de2c918f4251.zip
don't mix g_free and xmlAlloc (xml_decode): don't mix g_free and xmlAlloc
2001-08-08 Radek Doulik <rodo@ximian.com> * filter-folder.c (button_clicked): don't mix g_free and xmlAlloc (xml_decode): don't mix g_free and xmlAlloc * filter-code.c (filter_code_init): use xmlStrdup instead of g_strdup * filter-input.c (filter_input_new_type_name): use xmlStrdup instead of g_strdup (filter_input_finalise): don't mix g_free and xmlAlloc * filter-option.c (clone): use xmlStrdup instead of g_strdup (free_option): don't mix g_free and xmlAlloc svn path=/trunk/; revision=11795
Diffstat (limited to 'filter/filter-folder.c')
-rw-r--r--filter/filter-folder.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/filter/filter-folder.c b/filter/filter-folder.c
index 4b43997c2b..c79059178e 100644
--- a/filter/filter-folder.c
+++ b/filter/filter-folder.c
@@ -193,10 +193,17 @@ xml_decode (FilterElement *fe, xmlNodePtr node)
n = node->childs;
while (n) {
if (!strcmp (n->name, "folder")) {
- xmlFree (ff->name);
- xmlFree (ff->uri);
- ff->name = xmlGetProp (n, "name");
- ff->uri = xmlGetProp (n, "uri");
+ char *uri, *name;
+
+ name = xmlGetProp (n, "name");
+ g_free (ff->name);
+ ff->name = g_strdup (name);
+ xmlFree (name);
+
+ uri = xmlGetProp (n, "uri");
+ g_free (ff->uri);
+ ff->uri = g_strdup (uri);
+ xmlFree (uri);
break;
}
n = n->next;