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;
|
tex = stash->textures;
|
||||||
while(tex != NULL) {
|
while(tex != NULL) {
|
||||||
curtex = tex;
|
curtex = tex;
|
||||||
delete tex->m_texels;
|
free(tex->m_texels);
|
||||||
tex->m_texels=0;
|
tex->m_texels=0;
|
||||||
tex = tex->next;
|
tex = tex->next;
|
||||||
stash->m_renderCallbacks->updateTexture(curtex,0,0,0);
|
stash->m_renderCallbacks->updateTexture(curtex,0,0,0);
|
||||||
|
|||||||
Reference in New Issue
Block a user