Yet another fix for textured particle drawing performance, this one fixes a rather huge memory leak