Update fontstash.h
* change call order in `fonsDeleteInternal` so that free memory isn't passed to `fons__tt_done`master
parent
077b65e0cf
commit
ba85215f10
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue