[evolution-patches] [Addressbook] Patch for 67899
- From: Hans Petter Jansson <hpj ximian com>
- To: evolution-patches lists ximian com
- Cc: Chris Toshok <toshok ximian com>
- Subject: [evolution-patches] [Addressbook] Patch for 67899
- Date: Sat, 09 Oct 2004 19:32:59 -0500
This makes sure our EABViews are unreffed when the AddressbookView is
disposed. Failure to do this was causing crashes.
--
Hans Petter
Index: gui/component/addressbook-view.c
===================================================================
RCS file: /cvs/gnome/evolution/addressbook/gui/component/addressbook-view.c,v
retrieving revision 1.18.2.1
diff -u -p -r1.18.2.1 addressbook-view.c
--- gui/component/addressbook-view.c 16 Sep 2004 14:45:53 -0000 1.18.2.1
+++ gui/component/addressbook-view.c 10 Oct 2004 00:29:06 -0000
@@ -497,11 +497,10 @@ source_list_changed_cb (ESourceList *sou
view remove it from our hash table. */
v = g_hash_table_lookup (priv->uid_to_view,
uid);
- g_hash_table_remove (priv->uid_to_view, uid);
gtk_notebook_remove_page (GTK_NOTEBOOK (priv->notebook),
gtk_notebook_page_num (GTK_NOTEBOOK (priv->notebook),
GTK_WIDGET (v)));
- g_object_unref (v);
+ g_hash_table_remove (priv->uid_to_view, uid);
}
}
g_list_free (uids);
@@ -1108,7 +1107,7 @@ addressbook_view_init (AddressbookView *
priv->gconf_client = addressbook_component_peek_gconf_client (addressbook_component_peek ());
- priv->uid_to_view = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify)g_free, NULL);
+ priv->uid_to_view = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify)g_free, (GDestroyNotify)g_object_unref);
priv->uid_to_editor = g_hash_table_new_full (g_str_hash, g_str_equal, (GDestroyNotify)g_free, (GDestroyNotify)g_free);
priv->notebook = gtk_notebook_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]