shell: Don't crash when loading the icon fails

https://bugzilla.gnome.org/show_bug.cgi?id=660513
This commit is contained in:
Christian Persch 2011-09-29 21:25:44 +02:00 committed by Bastien Nocera
parent b1c1f4b2a5
commit e1dbaef587

View file

@ -34,7 +34,7 @@ load_pixbuf_for_gicon (GIcon *icon)
{
GtkIconTheme *theme;
GtkIconInfo *icon_info;
GdkPixbuf *pixbuf;
GdkPixbuf *pixbuf = NULL;
GError *err = NULL;
if (icon == NULL)