Fix: Memory leaks in the render.