removed free/delete inconsistency in texture.