Fix memory leak caused by  set key font "foo"; reset