Fix to minor memory leak when updating the renderer after successive compiles.