Correctly call alloc/free font callbacks.
Merge pull request #1753 from unknownbrackets/font-fix

Correctly call alloc/free font callbacks