From 32a455a0a580afc475a4b12fdf72fe5e79572065 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Sat, 30 Aug 2003 00:54:16 +0000 Subject: Need to copy the local properties list before passing it out, since it's 2003-08-29 Not Zed * providers/local/camel-local-folder.c (local_getv): Need to copy the local properties list before passing it out, since it's freed. svn path=/trunk/; revision=22418 --- camel/ChangeLog | 5 +++++ camel/providers/local/camel-local-folder.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/camel/ChangeLog b/camel/ChangeLog index 5e081058d0..bffcdeeac7 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2003-08-29 Not Zed + + * providers/local/camel-local-folder.c (local_getv): Need to copy + the local properties list before passing it out, since it's freed. + 2003-08-27 Not Zed * providers/local/camel-local-folder.c (local_getv): implement diff --git a/camel/providers/local/camel-local-folder.c b/camel/providers/local/camel-local-folder.c index 91d001ccfc..e0b3c7b55a 100644 --- a/camel/providers/local/camel-local-folder.c +++ b/camel/providers/local/camel-local-folder.c @@ -394,7 +394,7 @@ local_getv(CamelObject *object, CamelException *ex, CamelArgGetV *args) props.argc = 1; props.argv[0] = *arg; ((CamelObjectClass *)parent_class)->getv(object, ex, &props); - *arg->ca_ptr = g_slist_concat(*arg->ca_ptr, local_folder_properties); + *arg->ca_ptr = g_slist_concat(*arg->ca_ptr, g_slist_copy(local_folder_properties)); break; } -- cgit