aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-local-xmpp-assistant-widget.c')
-rw-r--r--libempathy-gtk/empathy-local-xmpp-assistant-widget.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-local-xmpp-assistant-widget.c b/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
index aa4d6cfcb..c55e3ab30 100644
--- a/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
+++ b/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
@@ -88,11 +88,14 @@ empathy_local_xmpp_assistant_widget_constructed (GObject *object)
gtk_widget_show (w);
pix = empathy_pixbuf_from_icon_name_sized ("im-local-xmpp", 48);
- w = gtk_image_new_from_pixbuf (pix);
- gtk_grid_attach (GTK_GRID (self), w, 1, 0, 1, 1);
- gtk_widget_show (w);
+ if (pix != NULL)
+ {
+ w = gtk_image_new_from_pixbuf (pix);
+ gtk_grid_attach (GTK_GRID (self), w, 1, 0, 1, 1);
+ gtk_widget_show (w);
- g_object_unref (pix);
+ g_object_unref (pix);
+ }
self->priv->settings = empathy_account_settings_new ("salut", "local-xmpp",
NULL, _("People nearby"));