Update fontstash.h

* change call order in `fonsDeleteInternal` so that free memory isn't passed to `fons__tt_done`
This commit is contained in:
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

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)