[evolution-data-server/gnome-2-26] ** BUGFIX: 573170 - Add back support for vfolder of vfolders.



commit 1749a8c9c1442eee13f6824bc8a0476d93b44e6c
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Sun May 3 20:31:52 2009 +0530

    ** BUGFIX: 573170 - Add back support for vfolder of vfolders.
    
    Handle uids as pstrings and ref them instead of duping.
---
 camel/camel-vee-folder.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/camel/camel-vee-folder.c b/camel/camel-vee-folder.c
index 611cfb2..0b39cf6 100644
--- a/camel/camel-vee-folder.c
+++ b/camel/camel-vee-folder.c
@@ -793,7 +793,8 @@ vee_search_by_uids(CamelFolder *folder, const char *expression, GPtrArray *uids,
 						vuid = g_malloc(strlen(uid)+9);
 						memcpy(vuid, hash, 8);
 						strcpy(vuid+8, uid);
-						g_ptr_array_add(result, vuid);
+						g_ptr_array_add(result, camel_pstring_strdup(vuid));
+						g_free(vuid);
 					}
 					camel_folder_search_free(f, matches);
 				} else {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]