empathy r1638 - trunk/src



Author: xclaesse
Date: Fri Oct 17 12:48:14 2008
New Revision: 1638
URL: http://svn.gnome.org/viewvc/empathy?rev=1638&view=rev

Log:
Be more careful in import_dialog_account_data_free

Modified:
   trunk/src/empathy-import-dialog.c

Modified: trunk/src/empathy-import-dialog.c
==============================================================================
--- trunk/src/empathy-import-dialog.c	(original)
+++ trunk/src/empathy-import-dialog.c	Fri Oct 17 12:48:14 2008
@@ -140,8 +140,12 @@
 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



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]