diff options
Diffstat (limited to 'addressbook/backend/ebook/e-destination.c')
-rw-r--r-- | addressbook/backend/ebook/e-destination.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/addressbook/backend/ebook/e-destination.c b/addressbook/backend/ebook/e-destination.c index 6537ea7480..86108125cb 100644 --- a/addressbook/backend/ebook/e-destination.c +++ b/addressbook/backend/ebook/e-destination.c @@ -96,17 +96,20 @@ e_destination_dispose (GObject *obj) { EDestination *dest = E_DESTINATION (obj); - e_destination_clear (dest); + if (dest->priv) { + e_destination_clear (dest); - if (dest->priv->old_card) - g_object_unref (dest->priv->old_card); + if (dest->priv->old_card) + g_object_unref (dest->priv->old_card); - if (dest->priv->cardify_book) - g_object_unref (dest->priv->cardify_book); + if (dest->priv->cardify_book) + g_object_unref (dest->priv->cardify_book); - g_free (dest->priv->old_textrep); + g_free (dest->priv->old_textrep); - g_free (dest->priv); + g_free (dest->priv); + dest->priv = NULL; + } } static void |