diff options
Diffstat (limited to 'addressbook/gui/widgets/gal-view-minicard.c')
-rw-r--r-- | addressbook/gui/widgets/gal-view-minicard.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c index 08818f9ee3..da60497cdb 100644 --- a/addressbook/gui/widgets/gal-view-minicard.c +++ b/addressbook/gui/widgets/gal-view-minicard.c @@ -89,8 +89,15 @@ static void gal_view_minicard_dispose (GObject *object) { GalViewMinicard *view = GAL_VIEW_MINICARD(object); - gal_view_minicard_detach (view); - g_free(view->title); + + if (view->title != NULL) { + gal_view_minicard_detach (view); + g_free(view->title); + view->title = NULL; + } + + if (G_OBJECT_CLASS (gal_view_minicard_parent_class)->dispose) + (* G_OBJECT_CLASS (gal_view_minicard_parent_class)->dispose) (object); } static void |