diff options
-rw-r--r-- | src/empathy-import-dialog.c | 8 |
1 files 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 |