aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);