Merge pull request #620 from mulle-nat/mulle-nat-patch-fonsDeleteInternal

Update fontstash.h
This commit is contained in:
Mikko Mononen 2021-11-01 22:25:49 +02:00 • committed by GitHub
commit e75cf72b4a
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)