aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy-gtk/empathy-account-widget-generic.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/libempathy-gtk/empathy-account-widget-generic.c b/libempathy-gtk/empathy-account-widget-generic.c
index 3c7385f48..999b64499 100644
--- a/libempathy-gtk/empathy-account-widget-generic.c
+++ b/libempathy-gtk/empathy-account-widget-generic.c
@@ -131,7 +131,7 @@ static void
account_widget_generic_setup_foreach (McProtocolParam *param,
EmpathyAccountWidgetGeneric *settings)
{
- GtkWidget *widget;
+ GtkWidget *widget = NULL;
gchar *param_name_formatted;
param_name_formatted = account_widget_generic_format_param_name (param->name);
@@ -258,13 +258,14 @@ account_widget_generic_setup_foreach (McProtocolParam *param,
empathy_debug (DEBUG_DOMAIN,
"Unknown signature for param %s: %s\n",
param_name_formatted, param->signature);
- g_assert_not_reached ();
}
- g_free (param_name_formatted);
+ if (widget) {
+ g_object_set_data_full (G_OBJECT (widget), "param_name",
+ g_strdup (param->name), g_free);
+ }
- g_object_set_data_full (G_OBJECT (widget), "param_name",
- g_strdup (param->name), g_free);
+ g_free (param_name_formatted);
}
static void