evolution-exchange r1716 - in trunk: . camel



Author: abharath
Date: Mon Aug  4 04:08:23 2008
New Revision: 1716
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1716&view=rev

Log:
2008-08-04  Bharath Acharya  <abharath novell com>

        ** Fix for bug #543427

        * camel/camel-exchange-folder.c:
        (camel_exchange_folder_add_message):
        * camel/camel-exchange-journal.c: (exchange_entry_play_append),
        (exchange_entry_play_transfer), (update_cache): 
        Use camel_pstring_strdup. The free'ing is handled by message_info_free.



Modified:
   trunk/ChangeLog
   trunk/camel/camel-exchange-folder.c
   trunk/camel/camel-exchange-journal.c

Modified: trunk/camel/camel-exchange-folder.c
==============================================================================
--- trunk/camel/camel-exchange-folder.c	(original)
+++ trunk/camel/camel-exchange-folder.c	Mon Aug  4 04:08:23 2008
@@ -46,6 +46,7 @@
 #include <camel/camel-stream-filter.h>
 #include <camel/camel-stream-mem.h>
 #include <camel/camel-folder-summary.h>
+#include <camel/camel-string-utils.h>
 
 static CamelOfflineFolderClass *parent_class = NULL;
 
@@ -759,7 +760,7 @@
 	}
 	camel_object_unref (CAMEL_OBJECT (msg));
 
-	info->uid = g_strdup (uid);
+	info->uid = camel_pstring_strdup (uid);
 	einfo->info.flags = flags;
 	einfo->info.size = size;
 	einfo->href = g_strdup (href);

Modified: trunk/camel/camel-exchange-journal.c
==============================================================================
--- trunk/camel/camel-exchange-journal.c	(original)
+++ trunk/camel/camel-exchange-journal.c	Mon Aug  4 04:08:23 2008
@@ -38,6 +38,7 @@
 #include <camel/camel-file-utils.h>
 #include <camel/camel-folder-summary.h>
 #include <camel/camel-data-cache.h>
+#include <camel/camel-string-utils.h>
 
 #include "camel-exchange-journal.h"
 #include "camel-exchange-store.h"
@@ -292,7 +293,7 @@
 	camel_object_unref (message);
 
 	if (uid != NULL && real) {
-		real->uid = g_strdup (uid);
+		real->uid = camel_pstring_strdup (uid);
 		exchange_message_info_dup_to ((CamelMessageInfoBase *) real, (CamelMessageInfoBase *) info);
 		camel_folder_summary_add (folder->summary, real);
 		/* FIXME: should a folder_changed event be triggered? */
@@ -356,7 +357,7 @@
 		if (!camel_exception_is_set (&lex)) {
 			real = camel_folder_summary_info_new_from_message (folder->summary, message);
 			camel_object_unref (message);
-			real->uid = g_strdup ((char *)xuids->pdata[0]);
+			real->uid = camel_pstring_strdup ((char *)xuids->pdata[0]);
 			/* Transfer flags */
 			exchange_message_info_dup_to ((CamelMessageInfoBase *) real, (CamelMessageInfoBase *) info);
 			camel_folder_summary_add (folder->summary, real);
@@ -463,7 +464,7 @@
 	camel_object_unref (cache);
 
 	info = camel_folder_summary_info_new_from_message (folder->summary, message);
-	info->uid = g_strdup (uid);
+	info->uid = camel_pstring_strdup (uid);
 
 	exchange_message_info_dup_to ((CamelMessageInfoBase *) info, (CamelMessageInfoBase *) mi);
 



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