aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-07-08 20:07:17 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-07-08 20:09:18 +0800
commit526cac765322aa7516d46d735fc9b5f1c4f2c228 (patch)
treeea9503738f0b5643cb24b1a8e99f805fefb9169e /libempathy-gtk/empathy-ui-utils.c
parent0abfccd4c28892dbf098ba15e2d7565caa97e87d (diff)
downloadgsoc2013-empathy-526cac765322aa7516d46d735fc9b5f1c4f2c228.tar
gsoc2013-empathy-526cac765322aa7516d46d735fc9b5f1c4f2c228.tar.gz
gsoc2013-empathy-526cac765322aa7516d46d735fc9b5f1c4f2c228.tar.bz2
gsoc2013-empathy-526cac765322aa7516d46d735fc9b5f1c4f2c228.tar.lz
gsoc2013-empathy-526cac765322aa7516d46d735fc9b5f1c4f2c228.tar.xz
gsoc2013-empathy-526cac765322aa7516d46d735fc9b5f1c4f2c228.tar.zst
gsoc2013-empathy-526cac765322aa7516d46d735fc9b5f1c4f2c228.zip
empathy_pixbuf_contact_status_icon_with_icon_name: don't use icon_filename after freeing it
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-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;