Update fontstash.h

* change call order in `fonsDeleteInternal` so that free memory isn't passed to `fons__tt_done`
master
Nat! 2021-10-31 22:28:28 +01:00 committed by GitHub
parent 077b65e0cf
commit ba85215f10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1660,8 +1660,8 @@ void fonsDeleteInternal(FONScontext* stash)
if (stash->fonts) free(stash->fonts);
if (stash->texData) free(stash->texData);
if (stash->scratch) free(stash->scratch);
free(stash);
fons__tt_done(stash);
free(stash);
}
void fonsSetErrorCallback(FONScontext* stash, void (*callback)(void* uptr, int error, int val), void* uptr)