aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client/cal-query.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-client/cal-query.c')
-rw-r--r--calendar/cal-client/cal-query.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/calendar/cal-client/cal-query.c b/calendar/cal-client/cal-query.c
index 97e7b81240..e1bef97e3c 100644
--- a/calendar/cal-client/cal-query.c
+++ b/calendar/cal-client/cal-query.c
@@ -180,8 +180,9 @@ cal_query_destroy (GtkObject *object)
query = CAL_QUERY (object);
priv = query->priv;
- /* The server unrefs the query listener, so we just NULL it out here */
+ /* The server keeps a copy of the query listener, so we must unref it */
query_listener_stop_notification (priv->ql);
+ bonobo_object_unref (BONOBO_OBJECT (priv->ql));
priv->ql = NULL;
if (priv->corba_query != CORBA_OBJECT_NIL) {