Fixing crash with bitmap fonts from #685
Close file if error occurs in GFileWriteAll(char* filepath, char *data)