aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-09-24 20:08:53 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-09-24 20:08:53 +0800
commit965cc1d9fce626582fe9626c26a849d5414806d9 (patch)
tree4bfd58fe0db4ed8aef55d6139a3ce3c5fef943c6 /calendar
parent388c6a2d5dbbda429f12854141f640b91ece6590 (diff)
downloadgsoc2013-evolution-965cc1d9fce626582fe9626c26a849d5414806d9.tar
gsoc2013-evolution-965cc1d9fce626582fe9626c26a849d5414806d9.tar.gz
gsoc2013-evolution-965cc1d9fce626582fe9626c26a849d5414806d9.tar.bz2
gsoc2013-evolution-965cc1d9fce626582fe9626c26a849d5414806d9.tar.lz
gsoc2013-evolution-965cc1d9fce626582fe9626c26a849d5414806d9.tar.xz
gsoc2013-evolution-965cc1d9fce626582fe9626c26a849d5414806d9.tar.zst
gsoc2013-evolution-965cc1d9fce626582fe9626c26a849d5414806d9.zip
unref the query since now the query object on the server keeps a copy of
2002-09-24 Rodrigo Moya <rodrigo@ximian.com> * 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
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog4
-rw-r--r--calendar/cal-client/cal-query.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 722ed04711..f65572ecf9 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,5 +1,9 @@
2002-09-24 Rodrigo Moya <rodrigo@ximian.com>
+ * 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.
+
* pcs/query.c (listener_died_cb): unref the QueryListener object.
(query_construct): create an EComponentListener for the non-cached
queries' listeners also.
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) {