[evolution-mapi] Bug #607790 - Crash due to GSlice memory error
- From: Milan Crha <mcrha src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug #607790 - Crash due to GSlice memory error
- Date: Fri, 22 Jan 2010 17:27:41 +0000 (UTC)
commit 8cdd2a92fdc27f84b2e632a546414dbf42d19c2b
Author: Milan Crha <mcrha redhat com>
Date: Fri Jan 22 18:26:48 2010 +0100
Bug #607790 - Crash due to GSlice memory error
src/camel/camel-mapi-store.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index 1c40348..eb3a318 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -506,7 +506,7 @@ mapi_get_folder(CamelStore *store, const char *folder_name, guint32 flags, Camel
if (!folder_info)
return NULL;
- camel_store_free_folder_info (store, folder_info);
+ camel_folder_info_free (folder_info);
}
if (si)
@@ -987,7 +987,7 @@ mapi_build_folder_info(CamelMapiStore *mapi_store, const char *parent_name, cons
CamelFolderInfo *fi;
CamelMapiStorePrivate *priv = mapi_store->priv;
- fi = g_malloc0(sizeof(*fi));
+ fi = camel_folder_info_new ();
fi->unread = -1;
fi->total = -1;
@@ -1133,7 +1133,7 @@ mapi_convert_to_folder_info (CamelMapiStore *store, ExchangeMAPIFolder *folder,
id = g_strdup_printf ("%016" G_GINT64_MODIFIER "X", exchange_mapi_folder_get_fid (folder));
- fi = g_new0 (CamelFolderInfo, 1);
+ fi = camel_folder_info_new ();
if (folder->is_default) {
switch (folder->default_type) {
@@ -1456,7 +1456,7 @@ mapi_folders_sync (CamelMapiStore *store, const char *top, guint32 flags, CamelE
mapi_si->info.unread = info->unread;
camel_store_summary_info_free ((CamelStoreSummary *)store->summary, (CamelStoreInfo *)mapi_si);
- camel_store_free_folder_info ((CamelStore *)store, info);
+ camel_folder_info_free (info);
}
/* Weed out deleted folders */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]