Fixed memory leak when setting a new font.