Fix memory leak with render nodes.