really fixed memory issue

This commit is contained in:
Ron Aaron 2020-03-06 12:51:36 +02:00
parent 3d84f6c42c
commit ae6deb7965
1 changed files with 1 additions and 1 deletions

View File

@ -1179,7 +1179,7 @@ nk_font_atlas_bake(struct nk_font_atlas *atlas, int *width, int *height,
tmp = atlas->temporary.alloc(atlas->temporary.userdata,0, tmp_size);
NK_ASSERT(tmp);
if (!tmp) goto failed;
memset(tmp,0,tmp_size);
memset(tmp,0,tmp_size);
/* allocate glyph memory for all fonts */
baker = nk_font_baker(tmp, atlas->glyph_count, atlas->font_num, &atlas->temporary);