aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-08-08 07:28:16 +0800
committerPeter Williams <peterw@src.gnome.org>2001-08-08 07:28:16 +0800
commite9adce66e5890eff3474b3927f2fb31ca4b4fd18 (patch)
treeedadcbde299a14981348fc6041ace5f33c768ae4
parentfc7ad0c9a97377934f6f1c03c5fa805a6c471513 (diff)
downloadgsoc2013-evolution-e9adce66e5890eff3474b3927f2fb31ca4b4fd18.tar.gz
gsoc2013-evolution-e9adce66e5890eff3474b3927f2fb31ca4b4fd18.tar.zst
gsoc2013-evolution-e9adce66e5890eff3474b3927f2fb31ca4b4fd18.zip
[ Use bonobo_object_unref on the storage since it's a bonobo object. ]
2001-08-07 Peter Williams <peterw@ximian.com> [ Use bonobo_object_unref on the storage since it's a bonobo object. ] * mail-send-recv.c (receive_update_got_store): Same. * mail-ops.c (do_update_subfolders): Same. svn path=/trunk/; revision=11752
-rw-r--r--mail/ChangeLog4
-rw-r--r--mail/mail-ops.c6
-rw-r--r--mail/mail-send-recv.c2
3 files changed, 8 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 46a0ab8fd0..a826ffff7c 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -29,6 +29,10 @@
(mail_storage_create_folder): Same.
(folder_deleted): Same.
+ * mail-send-recv.c (receive_update_got_store): Same.
+
+ * mail-ops.c (do_update_subfolders): Same.
+
* subscribe-dialog.c (fe_destroy): Unref the e_storage since
lookup_store gives us a ref.
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index b3b47d81d7..bf3427c2b2 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -423,9 +423,9 @@ do_update_subfolders (CamelStore *store, CamelFolderInfo *info, void *data)
}
if (uinfo->done)
- uinfo->done (store, uinfo->data);
-
- gtk_object_unref ((GtkObject *)uinfo->storage);
+ uinfo->done(store, uinfo->data);
+
+ bonobo_object_unref((BonoboObject *)uinfo->storage);
g_free (uinfo);
}
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index 0564dd0214..d0fed294b4 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -589,7 +589,7 @@ receive_update_got_store(char *uri, CamelStore *store, void *data)
EvolutionStorage *storage = mail_lookup_storage(store);
if (storage) {
mail_update_subfolders(store, storage, receive_update_done, info);
- gtk_object_unref((GtkObject *)storage);
+ bonobo_object_unref((BonoboObject *)storage);
} else {
receive_done("", info);
}