]> git.0d.be Git - empathy.git/commitdiff
empathy_pixbuf_contact_status_icon_with_icon_name: don't use icon_filename after...
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 8 Jul 2010 12:07:17 +0000 (14:07 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Thu, 8 Jul 2010 12:09:18 +0000 (14:09 +0200)
libempathy-gtk/empathy-ui-utils.c

index ee48fa995fe6704e91e950d32157517aa59b3a68..d5abf026518b7386ef1987f501a98f6f6259a378 100644 (file)
@@ -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;