Update fontstash.cpp
use free instead of 'delete' for the tex->m_texels memory
This commit is contained in:
@@ -793,7 +793,7 @@ void sth_delete(struct sth_stash* stash)
|
||||
tex = stash->textures;
|
||||
while(tex != NULL) {
|
||||
curtex = tex;
|
||||
delete tex->m_texels;
|
||||
free(tex->m_texels);
|
||||
tex->m_texels=0;
|
||||
tex = tex->next;
|
||||
stash->m_renderCallbacks->updateTexture(curtex,0,0,0);
|
||||
|
||||
Reference in New Issue
Block a user