From ad14208ca989c3bc513ed158dc1af4ebcdb6e1d7 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 17 Oct 2008 12:48:14 +0000 Subject: Be more careful in import_dialog_account_data_free svn path=/trunk/; revision=1638 --- src/empathy-import-dialog.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c index 755d056a5..f80cd8882 100644 --- a/src/empathy-import-dialog.c +++ b/src/empathy-import-dialog.c @@ -140,8 +140,12 @@ static void import_dialog_button_cancel_clicked_cb (GtkButton *button, static void import_dialog_account_data_free (AccountData *data) { - g_object_unref (data->profile); - g_hash_table_destroy (data->settings); + if (data == NULL) + return; + if (data->profile != NULL) + g_object_unref (data->profile); + if (data->settings != NULL) + g_hash_table_destroy (data->settings); } static gboolean -- cgit v1.2.3