iconfactory: Initialize varibale to NULL in failure path

Otherwise we use random memory and that is not good.
This commit is contained in:
Benjamin Otte
2010-09-09 23:09:07 +02:00
committed by Matthias Clasen
parent e048de9cab
commit b7ab0ed129

View File

@@ -1463,6 +1463,8 @@ render_icon_name_pixbuf (GtkIconSource *icon_source,
tmp_pixbuf = gtk_icon_info_load_icon (info, &error);
gtk_icon_info_free (info);
}
else
tmp_pixbuf = NULL;
}
else
{