From 006c78bdab12452630ecf0f7b97c8f0870fcca8c Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 16 May 2000 10:53:58 +0000 Subject: Fixed a reference leak. 2000-05-16 Christopher James Lahey * contact-editor/e-contact-editor-categories.c: Fixed a reference leak. svn path=/trunk/; revision=3084 --- addressbook/ChangeLog | 7 ++++++- addressbook/contact-editor/e-contact-editor-categories.c | 2 ++ addressbook/gui/contact-editor/e-contact-editor-categories.c | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) (limited to 'addressbook') diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 76a1e59f14..76fc271026 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,8 +1,13 @@ +2000-05-16 Christopher James Lahey + + * contact-editor/e-contact-editor-categories.c: Fixed a reference + leak. + 2000-05-16 Christopher James Lahey * contact-editor/e-contact-editor-categories.c: Fixed a compile error. - + 2000-05-16 Christopher James Lahey * contact-editor/e-contact-editor-categories.c: Got rid of a diff --git a/addressbook/contact-editor/e-contact-editor-categories.c b/addressbook/contact-editor/e-contact-editor-categories.c index 05c86ac1b4..8355c9cd96 100644 --- a/addressbook/contact-editor/e-contact-editor-categories.c +++ b/addressbook/contact-editor/e-contact-editor-categories.c @@ -289,6 +289,8 @@ e_contact_editor_categories_init (EContactEditorCategories *categories) e_table_header_add_column (header, col, 1); e_table = e_table_new (header, categories->model, INITIAL_SPEC); + + gtk_object_sink(categories->model); gtk_widget_show(e_table); diff --git a/addressbook/gui/contact-editor/e-contact-editor-categories.c b/addressbook/gui/contact-editor/e-contact-editor-categories.c index 05c86ac1b4..8355c9cd96 100644 --- a/addressbook/gui/contact-editor/e-contact-editor-categories.c +++ b/addressbook/gui/contact-editor/e-contact-editor-categories.c @@ -289,6 +289,8 @@ e_contact_editor_categories_init (EContactEditorCategories *categories) e_table_header_add_column (header, col, 1); e_table = e_table_new (header, categories->model, INITIAL_SPEC); + + gtk_object_sink(categories->model); gtk_widget_show(e_table); -- cgit v1.2.3