From 965cc1d9fce626582fe9626c26a849d5414806d9 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Tue, 24 Sep 2002 12:08:53 +0000 Subject: unref the query since now the query object on the server keeps a copy of 2002-09-24 Rodrigo Moya * cal-client/cal-query.c (cal_query_destroy): unref the query since now the query object on the server keeps a copy of it and must know when the listener is no longer valid. svn path=/trunk/; revision=18196 --- calendar/cal-client/cal-query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calendar/cal-client') 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) { -- cgit v1.2.3