aboutsummaryrefslogtreecommitdiffstats
path: root/filter/vfolder-rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'filter/vfolder-rule.c')
-rw-r--r--filter/vfolder-rule.c6
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;
}