[PATCH 06/18] Fix ref leak with the iter_store in tny_camel_store_account.
- From: Rob Taylor <rob taylor codethink co uk>
- To: tinymail-devel-list <tinymail-devel-list gnome org>
- Subject: [PATCH 06/18] Fix ref leak with the iter_store in tny_camel_store_account.
- Date: Fri, 29 Aug 2008 17:42:39 +0100
Fix ref leak with the iter_store in tny_camel_store_account.
---
libtinymail-camel/tny-camel-store-account.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
--
Rob Taylor, Codethink Ltd. - http://codethink.co.uk
diff --git a/libtinymail-camel/tny-camel-store-account.c b/libtinymail-camel/tny-camel-store-account.c
index 749f6d9..e2821c8 100644
--- a/libtinymail-camel/tny-camel-store-account.c
+++ b/libtinymail-camel/tny-camel-store-account.c
@@ -1724,6 +1724,10 @@ tny_camel_store_account_store_refresh (TnyFolderStore *self, GError **err)
}
priv->cant_reuse_iter = FALSE;
+
+ if (priv->iter_store) {
+ camel_object_unref (CAMEL_OBJECT (store));
+ }
camel_object_ref (CAMEL_OBJECT (store));
priv->iter_store = store;
priv->iter = iter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]