Update fontstash.cpp

use free instead of 'delete' for the tex->m_texels memory
This commit is contained in:
erwincoumans
2016-10-20 17:11:33 -07:00
committed by GitHub
parent 0ca1cee6f0
commit d309e298e1

View File

@@ -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);