Close files opened by MakeTemporaryFile()

DumpSplineFontMetadata() returns 0 (not NULL), if error encountered.
SFDTrimUndoOldToNew_Output() closed files but should also free other vars
Merge pull request #907 from JoesCat/master

Close files opened by MakeTemporaryFile()