From 526cac765322aa7516d46d735fc9b5f1c4f2c228 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 8 Jul 2010 14:07:17 +0200 Subject: empathy_pixbuf_contact_status_icon_with_icon_name: don't use icon_filename after freeing it --- libempathy-gtk/empathy-ui-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index ee48fa995..d5abf0265 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -539,13 +539,14 @@ empathy_pixbuf_contact_status_icon_with_icon_name (EmpathyContact *contact, pix_status = gdk_pixbuf_new_from_file (icon_filename, NULL); - g_free (icon_filename); - if (pix_status == NULL) { DEBUG ("Could not open icon %s\n", icon_filename); + g_free (icon_filename); return NULL; } + g_free (icon_filename); + if (!show_protocol) return pix_status; -- cgit v1.2.3