aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/pcs/cal.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/pcs/cal.c')
-rw-r--r--calendar/pcs/cal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/pcs/cal.c b/calendar/pcs/cal.c
index cb92f391b5..213ad35c31 100644
--- a/calendar/pcs/cal.c
+++ b/calendar/pcs/cal.c
@@ -554,10 +554,11 @@ cal_destroy (GtkObject *object)
priv->backend = NULL;
CORBA_exception_init (&ev);
- CORBA_Object_release (priv->listener, &ev);
+ bonobo_object_release_unref (priv->listener, &ev);
if (ev._major != CORBA_NO_EXCEPTION)
g_message ("cal_destroy(): could not release the listener");
+ priv->listener = NULL;
CORBA_exception_free (&ev);
g_free (priv);