[evolution-data-server] Bug #628657 - imapx sync_folders memory leak



commit 903db667c5f4abd1bc892d0e0fd966ce3373f4c5
Author: Milan Crha <mcrha redhat com>
Date:   Tue Sep 7 09:54:57 2010 +0200

    Bug #628657 - imapx sync_folders memory leak

 camel/providers/imapx/camel-imapx-store-summary.c |    2 ++
 camel/providers/imapx/camel-imapx-store.c         |    5 +++++
 2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/camel/providers/imapx/camel-imapx-store-summary.c b/camel/providers/imapx/camel-imapx-store-summary.c
index 1b75be7..69def14 100644
--- a/camel/providers/imapx/camel-imapx-store-summary.c
+++ b/camel/providers/imapx/camel-imapx-store-summary.c
@@ -279,6 +279,8 @@ camel_imapx_store_summary_add_from_full(CamelIMAPXStoreSummary *s, const gchar *
 		d(printf("  failed\n"));
 	}
 
+	g_free (pathu8);
+
 	return info;
 }
 
diff --git a/camel/providers/imapx/camel-imapx-store.c b/camel/providers/imapx/camel-imapx-store.c
index ebdbb23..fa8e27f 100644
--- a/camel/providers/imapx/camel-imapx-store.c
+++ b/camel/providers/imapx/camel-imapx-store.c
@@ -136,6 +136,9 @@ imapx_store_finalize (GObject *object)
 
 	g_free (imapx_store->base_url);
 
+	if (imapx_store->summary)
+		g_object_unref (imapx_store->summary);
+
 	/* Chain up to parent's finalize() method. */
 	G_OBJECT_CLASS (camel_imapx_store_parent_class)->finalize (object);
 }
@@ -168,6 +171,8 @@ imapx_construct(CamelService *service, CamelSession *session, CamelProvider *pro
 	camel_store_summary_set_uri_base((CamelStoreSummary *)store->summary, service->url);
 	camel_store_summary_load((CamelStoreSummary *)store->summary);
 
+	g_free (summary);
+
 	return TRUE;
 }
 



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