From b8c1cd566b533b84b3cb16f1dd24fecb388c62a9 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 13 Jun 2012 14:34:46 -0500 Subject: fix a spurious call to g_error_free() in indicator_session_init() --- src/indicator-session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/indicator-session.c') diff --git a/src/indicator-session.c b/src/indicator-session.c index c6f4d9c..4bc249e 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -150,15 +150,15 @@ indicator_session_init (IndicatorSession *self) // I think the avatar image is available always but just in case have a fallback if (error != NULL) { - g_warning ("Could not load the default avatar image for some reason"); + g_warning ("Could not load the default avatar image: %s", error->message); self->users.image = indicator_image_helper (USER_ITEM_ICON_DEFAULT); + g_clear_error (&error); } else{ avatar_icon = gtk_image_new (); gtk_image_set_from_pixbuf (GTK_IMAGE (avatar_icon), pixbuf); self->users.image = GTK_IMAGE (avatar_icon); g_object_unref (pixbuf); - g_error_free (error); } self->users.label = GTK_LABEL (gtk_label_new (NULL)); -- cgit v1.2.3