aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-01-16 17:37:26 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-01-16 17:37:26 +0800
commit22da56b2392a9470f50c1da6b54f8e5aebf7ac4a (patch)
treeaa548e334ee476a857aa968d7bc5c2892b8fb154 /libempathy-gtk
parent239bffa02a58062e11e55c0373a233c5939cb4b3 (diff)
downloadgsoc2013-empathy-22da56b2392a9470f50c1da6b54f8e5aebf7ac4a.tar
gsoc2013-empathy-22da56b2392a9470f50c1da6b54f8e5aebf7ac4a.tar.gz
gsoc2013-empathy-22da56b2392a9470f50c1da6b54f8e5aebf7ac4a.tar.bz2
gsoc2013-empathy-22da56b2392a9470f50c1da6b54f8e5aebf7ac4a.tar.lz
gsoc2013-empathy-22da56b2392a9470f50c1da6b54f8e5aebf7ac4a.tar.xz
gsoc2013-empathy-22da56b2392a9470f50c1da6b54f8e5aebf7ac4a.tar.zst
gsoc2013-empathy-22da56b2392a9470f50c1da6b54f8e5aebf7ac4a.zip
filter_result_callback_data_new: add some checks
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-chooser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index c21a22ebc..ae3f1dd15 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -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);