diff options
author | 7 <NotZed@Ximian.com> | 2001-09-28 08:12:24 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-09-28 08:12:24 +0800 |
commit | 220fba647b57d5d671929dafad86cc7e226bd26f (patch) | |
tree | 75a3a85936eb67f4fd45f554264c13c39656a81e /filter/vfolder-rule.c | |
parent | 905bc4ef20410f9649cd13f68a7ec1063e0e8b15 (diff) | |
download | gsoc2013-evolution-220fba647b57d5d671929dafad86cc7e226bd26f.tar.gz gsoc2013-evolution-220fba647b57d5d671929dafad86cc7e226bd26f.tar.zst gsoc2013-evolution-220fba647b57d5d671929dafad86cc7e226bd26f.zip |
Use g_strdup for the uri, not the xml memory.
2001-09-27 <NotZed@Ximian.com>
* vfolder-rule.c (xml_decode): Use g_strdup for the uri, not the
xml memory.
* filter-driver.c, filter-message-search.c: Removed, again, how
did they come back???
svn path=/trunk/; revision=13208
Diffstat (limited to 'filter/vfolder-rule.c')
-rw-r--r-- | filter/vfolder-rule.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/filter/vfolder-rule.c b/filter/vfolder-rule.c index 5f122b5f1a..4f728e2944 100644 --- a/filter/vfolder-rule.c +++ b/filter/vfolder-rule.c @@ -252,8 +252,10 @@ xml_decode (FilterRule *fr, xmlNodePtr node, struct _RuleContext *f) while (work) { if (!strcmp(work->name, "folder")) { uri = xmlGetProp(work, "uri"); - if (uri) - vr->sources = g_list_append(vr->sources, uri); + if (uri) { + vr->sources = g_list_append(vr->sources, g_strdup(uri)); + xmlFree(uri); + } } work = work->next; } |