Fix memory bug that was releasing font before using it

Without this fix, the sample app crashes when changing the font (and perhaps when changing some other settings as well?)