filter_result_callback_data_new: add some checks
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 16 Jan 2012 09:37:26 +0000 (10:37 +0100)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 16 Jan 2012 09:37:26 +0000 (10:37 +0100)
libempathy-gtk/empathy-account-chooser.c

index c21a22ebcea55876da2d8abe06517b785e7524ad..ae3f1dd154e3538ac0c5eda34f73ef0dd09a2c52 100644 (file)
@@ -90,6 +90,10 @@ filter_result_callback_data_new (EmpathyAccountChooser *self,
 {
   FilterResultCallbackData *data;
 
+  g_return_val_if_fail (self != NULL, NULL);
+  g_return_val_if_fail (account != NULL, NULL);
+  g_return_val_if_fail (iter != NULL, NULL);
+
   data = g_slice_new0 (FilterResultCallbackData);
   data->self = g_object_ref (self);
   data->account = g_object_ref (account);