From 28bc0361b9db902a9bcca18cfc5c1b9cc37a7229 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sat, 9 Nov 2002 04:10:06 +0000 Subject: guard against multiple invocations. (remove_book_view): same. 2002-11-08 Chris Toshok * gui/widgets/e-addressbook-model.c (free_data): guard against multiple invocations. (remove_book_view): same. (addressbook_dispose): same. * gui/widgets/e-addressbook-view.c (e_addressbook_view_dispose): same. * gui/widgets/e-minicard-view-widget.c (e_minicard_view_widget_dispose): same. * gui/widgets/e-minicard-view.c (e_minicard_view_dispose): same. * gui/widgets/e-minicard-widget.c (e_minicard_widget_dispose): same. svn path=/trunk/; revision=18685 --- addressbook/gui/widgets/e-minicard-widget.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'addressbook/gui/widgets/e-minicard-widget.c') diff --git a/addressbook/gui/widgets/e-minicard-widget.c b/addressbook/gui/widgets/e-minicard-widget.c index 75ccfccc98..5c8483ac88 100644 --- a/addressbook/gui/widgets/e-minicard-widget.c +++ b/addressbook/gui/widgets/e-minicard-widget.c @@ -181,8 +181,10 @@ e_minicard_widget_dispose (GObject *object) { EMinicardWidget *emw = E_MINICARD_WIDGET(object); - if (emw->card) + if (emw->card) { g_object_unref (emw->card); + emw->card = NULL; + } if (G_OBJECT_CLASS(parent_class)->dispose) G_OBJECT_CLASS(parent_class)->dispose(object); -- cgit