Fix memory leak when drawing circles