aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2012-06-13 14:34:46 -0500
committerCharles Kerr <charles.kerr@canonical.com>2012-06-13 14:34:46 -0500
commitb8c1cd566b533b84b3cb16f1dd24fecb388c62a9 (patch)
tree4d164d77d6da7b7267a4e18ff67b2323801b18cd /src
parent38dbee40c9466cb17cb71a42ed46b12377638c20 (diff)
downloadayatana-indicator-session-b8c1cd566b533b84b3cb16f1dd24fecb388c62a9.tar.gz
ayatana-indicator-session-b8c1cd566b533b84b3cb16f1dd24fecb388c62a9.tar.bz2
ayatana-indicator-session-b8c1cd566b533b84b3cb16f1dd24fecb388c62a9.zip
fix a spurious call to g_error_free() in indicator_session_init()
Diffstat (limited to 'src')
-rw-r--r--src/indicator-session.c4
1 files changed, 2 insertions, 2 deletions
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));