aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c5
1 files 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;