aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2009-08-25 08:50:53 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-08-25 18:55:39 +0800
commitaee5f035ce319f43a541bcf0cbdc536d648192eb (patch)
tree41aed66b9878fdfe3a39ade2efb796fc1926a113
parent3702cb89aa2fe19bea22e280b55fc71e677e9568 (diff)
downloadgsoc2013-empathy-aee5f035ce319f43a541bcf0cbdc536d648192eb.tar
gsoc2013-empathy-aee5f035ce319f43a541bcf0cbdc536d648192eb.tar.gz
gsoc2013-empathy-aee5f035ce319f43a541bcf0cbdc536d648192eb.tar.bz2
gsoc2013-empathy-aee5f035ce319f43a541bcf0cbdc536d648192eb.tar.lz
gsoc2013-empathy-aee5f035ce319f43a541bcf0cbdc536d648192eb.tar.xz
gsoc2013-empathy-aee5f035ce319f43a541bcf0cbdc536d648192eb.tar.zst
gsoc2013-empathy-aee5f035ce319f43a541bcf0cbdc536d648192eb.zip
Check for NULL values returned by dup_selected()
-rw-r--r--src/empathy-accounts-dialog.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 40f46e49e..b2378b7dd 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -290,6 +290,15 @@ accounts_dialog_protocol_changed_cb (GtkWidget *widget,
cm = empathy_protocol_chooser_dup_selected (
EMPATHY_PROTOCOL_CHOOSER (priv->combobox_protocol), &proto);
+ if (cm == NULL)
+ return;
+
+ if (proto == NULL)
+ {
+ g_object_unref (cm);
+ return;
+ }
+
if (tp_connection_manager_protocol_can_register (proto))
{
gtk_widget_show (priv->radiobutton_register);