diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-17 20:48:14 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-17 20:48:14 +0800 |
commit | ad14208ca989c3bc513ed158dc1af4ebcdb6e1d7 (patch) | |
tree | 5a9410c66667bbf56e1bbb6b831a2c7e1d429550 | |
parent | 420d6dc651cef68457ef02091d67c439329651b1 (diff) | |
download | gsoc2013-empathy-ad14208ca989c3bc513ed158dc1af4ebcdb6e1d7.tar gsoc2013-empathy-ad14208ca989c3bc513ed158dc1af4ebcdb6e1d7.tar.gz gsoc2013-empathy-ad14208ca989c3bc513ed158dc1af4ebcdb6e1d7.tar.bz2 gsoc2013-empathy-ad14208ca989c3bc513ed158dc1af4ebcdb6e1d7.tar.lz gsoc2013-empathy-ad14208ca989c3bc513ed158dc1af4ebcdb6e1d7.tar.xz gsoc2013-empathy-ad14208ca989c3bc513ed158dc1af4ebcdb6e1d7.tar.zst gsoc2013-empathy-ad14208ca989c3bc513ed158dc1af4ebcdb6e1d7.zip |
Be more careful in import_dialog_account_data_free
svn path=/trunk/; revision=1638
-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 |