aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-offline-handler.c
diff options
context:
space:
mode:
authorHans Petter Jansson <hpj@ximian.com>2003-08-14 15:16:16 +0800
committerHans Petter <hansp@src.gnome.org>2003-08-14 15:16:16 +0800
commit7a208fc48c41e901d527eab89cb103f3c999ad86 (patch)
treeea02a22a97ac7f31c12c6898891d3198438d1d57 /calendar/gui/calendar-offline-handler.c
parent1f607a46c3b950f00be5190c0f803526764cb4d4 (diff)
downloadgsoc2013-evolution-7a208fc48c41e901d527eab89cb103f3c999ad86.tar
gsoc2013-evolution-7a208fc48c41e901d527eab89cb103f3c999ad86.tar.gz
gsoc2013-evolution-7a208fc48c41e901d527eab89cb103f3c999ad86.tar.bz2
gsoc2013-evolution-7a208fc48c41e901d527eab89cb103f3c999ad86.tar.lz
gsoc2013-evolution-7a208fc48c41e901d527eab89cb103f3c999ad86.tar.xz
gsoc2013-evolution-7a208fc48c41e901d527eab89cb103f3c999ad86.tar.zst
gsoc2013-evolution-7a208fc48c41e901d527eab89cb103f3c999ad86.zip
Chain. Prevent double unrefs. (impl_finalize): Chain.
2003-08-12 Hans Petter Jansson <hpj@ximian.com> * gui/calendar-offline-handler.c (impl_dispose): Chain. Prevent double unrefs. (impl_finalize): Chain. * gui/e-alarm-list.c (finalize): Chain. * gui/e-comp-editor-registry.c (destroy): Chain. Prevent double frees. (editor_destroy_cb): Don't crash if we get the destroy signal twice. * gui/e-date-time-list.c (e_date_time_list_finalize): Chain. * gui/e-meeting-attendee.c (finalize): Chain. * gui/e-meeting-model.c (finalize): Chain. svn path=/trunk/; revision=22228
Diffstat (limited to 'calendar/gui/calendar-offline-handler.c')
-rw-r--r--calendar/gui/calendar-offline-handler.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/calendar/gui/calendar-offline-handler.c b/calendar/gui/calendar-offline-handler.c
index 894f3cf560..fd59965283 100644
--- a/calendar/gui/calendar-offline-handler.c
+++ b/calendar/gui/calendar-offline-handler.c
@@ -258,7 +258,10 @@ impl_dispose (GObject *object)
offline_handler = CALENDAR_OFFLINE_HANDLER (object);
priv = offline_handler->priv;
- g_object_unref (priv->client);
+ if (priv->client) {
+ g_object_unref (priv->client);
+ priv->client = NULL;
+ }
if (priv->listener_interface != CORBA_OBJECT_NIL) {
CORBA_Environment ev;
@@ -270,6 +273,8 @@ impl_dispose (GObject *object)
priv->listener_interface = CORBA_OBJECT_NIL;
}
+ if (G_OBJECT_CLASS (parent_class)->dispose)
+ (* G_OBJECT_CLASS (parent_class)->dispose) (object);
}
static void
@@ -282,6 +287,9 @@ impl_finalize (GObject *object)
priv = offline_handler->priv;
g_free (priv);
+
+ if (G_OBJECT_CLASS (parent_class)->finalize)
+ (* G_OBJECT_CLASS (parent_class)->finalize) (object);
}
/* GTK+ type initialization. */