瀏覽代碼

really fixed memory issue

Ron Aaron 5 年之前
父節點
當前提交
ae6deb7965
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/nuklear_font.c

+ 1 - 1
src/nuklear_font.c

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