** BUGFIX: 573170 - Add back support for vfolder of vfolders.
authorSrinivasa Ragavan <sragavan@novell.com>
Sun, 3 May 2009 15:01:52 +0000 (20:31 +0530)
committerSrinivasa Ragavan <sragavan@novell.com>
Sun, 3 May 2009 15:04:35 +0000 (20:34 +0530)
Handle uids as pstrings and ref them instead of duping.

camel/camel-vee-folder.c

index 5d8ba71..253aef3 100644 (file)
@@ -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 {