GL: Fixed memory corruption.