[Rend2] Fix memory leak in Ghoul2 code.