aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend/ebook
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2001-01-19 15:54:28 +0800
committerJP Rosevear <jpr@src.gnome.org>2001-01-19 15:54:28 +0800
commit86f07a3cd97dfda5abc2aa5eaf0bac556e8cf2a2 (patch)
treee32fb2c45d70401ad789e9675590bd671ea0849d /addressbook/backend/ebook
parent3da36c62ad05875f71021f8933b6dc7cd3dd9826 (diff)
downloadgsoc2013-evolution-86f07a3cd97dfda5abc2aa5eaf0bac556e8cf2a2.tar
gsoc2013-evolution-86f07a3cd97dfda5abc2aa5eaf0bac556e8cf2a2.tar.gz
gsoc2013-evolution-86f07a3cd97dfda5abc2aa5eaf0bac556e8cf2a2.tar.bz2
gsoc2013-evolution-86f07a3cd97dfda5abc2aa5eaf0bac556e8cf2a2.tar.lz
gsoc2013-evolution-86f07a3cd97dfda5abc2aa5eaf0bac556e8cf2a2.tar.xz
gsoc2013-evolution-86f07a3cd97dfda5abc2aa5eaf0bac556e8cf2a2.tar.zst
gsoc2013-evolution-86f07a3cd97dfda5abc2aa5eaf0bac556e8cf2a2.zip
always free the delivery elements and correct embarrassingly stupid memory
2001-01-19 JP Rosevear <jpr@ximian.com> * conduit/address-conduit.c (ecard_from_remote_record): always free the delivery elements and correct embarrassingly stupid memory error that was causing the addressbook conduit problems. * backend/ebook/e-book-view-listener.c (e_book_view_listener_check_queue): ref/unref ourself when processing in case someone we signal unrefs us. * conduit/address-conduit.c (sequence_complete): disconnect signals when complete svn path=/trunk/; revision=7641
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r--addressbook/backend/ebook/e-book-view-listener.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/addressbook/backend/ebook/e-book-view-listener.c b/addressbook/backend/ebook/e-book-view-listener.c
index 23133ecc22..4ad674ccd8 100644
--- a/addressbook/backend/ebook/e-book-view-listener.c
+++ b/addressbook/backend/ebook/e-book-view-listener.c
@@ -33,6 +33,7 @@ struct _EBookViewListenerPrivate {
static gboolean
e_book_view_listener_check_queue (EBookViewListener *listener)
{
+ bonobo_object_ref (BONOBO_OBJECT (listener));
if (listener->priv->response_queue != NULL) {
gtk_signal_emit (GTK_OBJECT (listener),
e_book_view_listener_signals [RESPONSES_QUEUED]);
@@ -40,8 +41,10 @@ e_book_view_listener_check_queue (EBookViewListener *listener)
if (listener->priv->response_queue == NULL) {
listener->priv->idle_id = 0;
+ bonobo_object_unref (BONOBO_OBJECT (listener));
return FALSE;
}
+ bonobo_object_unref (BONOBO_OBJECT (listener));
return TRUE;
}