From 1367c80fedb90e8e210baea17b1d39af25225650 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 23 Jan 2001 06:49:26 +0000 Subject: properly ref the ecard. still need to kill some memory leaks. 2001-01-23 JP Rosevear * conduit/address-conduit.c (local_record_from_ecard): properly ref the ecard. still need to kill some memory leaks. svn path=/trunk/; revision=7742 --- addressbook/ChangeLog | 5 +++++ addressbook/conduit/address-conduit.c | 1 + 2 files changed, 6 insertions(+) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 956018684e..863b3b6870 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,8 @@ +2001-01-23 JP Rosevear + + * conduit/address-conduit.c (local_record_from_ecard): properly ref + the ecard. still need to kill some memory leaks. + 2001-01-22 JP Rosevear * conduit/Makefile.am: remove vfs dependency diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c index 47a066970e..907456d985 100644 --- a/addressbook/conduit/address-conduit.c +++ b/addressbook/conduit/address-conduit.c @@ -343,6 +343,7 @@ local_record_from_ecard (EAddrLocalRecord *local, ECard *ecard, EAddrConduitCont g_return_if_fail (ecard != NULL); local->ecard = ecard; + gtk_object_ref (GTK_OBJECT (ecard)); simple = e_card_simple_new (ecard); local->local.ID = e_pilot_map_lookup_pid (ctxt->map, ecard->id); -- cgit v1.2.3