aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-object.h
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-07-06 00:40:45 +0800
committerPeter Williams <peterw@src.gnome.org>2001-07-06 00:40:45 +0800
commitd0eee4860651b7ce2e30f535372773a87db233c1 (patch)
treed9b9c45f96b8cc1bf255301c9005e0a2a6254fae /camel/camel-object.h
parentfb6a190f0085747e1146bc2f9153753fb95dd94b (diff)
downloadgsoc2013-evolution-d0eee4860651b7ce2e30f535372773a87db233c1.tar.gz
gsoc2013-evolution-d0eee4860651b7ce2e30f535372773a87db233c1.tar.zst
gsoc2013-evolution-d0eee4860651b7ce2e30f535372773a87db233c1.zip
Move this before the camel_vee_folder_remove_folder because that function
2001-07-05 Peter Williams <peterw@ximian.com> * camel-vee-folder.c (camel_vee_folder_finalise): Move this before the camel_vee_folder_remove_folder because that function modifies p->folders messing up our iteration. (camel_vee_folder_finalise): Don't unref our summary; camel-folder now does this. * camel-object.h (CamelObject): Add a 'destroying' flag to CamelObject. * camel-object.c (obj_init): Clear 'destroying'. (camel_object_unref): If 'destroying' then do not send the finalize event and do not call finalize functions. Otherwise, set destroying so just in case we get refed (eg event code) we don't get doubly finalized. svn path=/trunk/; revision=10811
Diffstat (limited to 'camel/camel-object.h')
-rw-r--r--camel/camel-object.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/camel-object.h b/camel/camel-object.h
index f59ae5788d..484d414f10 100644
--- a/camel/camel-object.h
+++ b/camel/camel-object.h
@@ -81,10 +81,11 @@ CamelObjectClass;
typedef struct _CamelObject
{
CamelObjectShared s;
- guint32 ref_count:31;
- guint32 in_event:1;
CamelObjectClass *classfuncs;
GHashTable *event_to_hooklist;
+ guint32 ref_count:30;
+ guint32 in_event:1;
+ guint32 destroying:1;
}
CamelObject;