[3.0] Valgrind detected TextureSet leak and invalid access