fix incorrect memset size in shutdown for glfw demo

This commit is contained in:
Patrick McMorris 2020-06-11 23:03:38 -07:00
parent 1407308b88
commit c1e7be31bd
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ void nk_glfw3_shutdown(struct nk_glfw* glfw)
nk_font_atlas_clear(&glfw->atlas); nk_font_atlas_clear(&glfw->atlas);
nk_free(&glfw->ctx); nk_free(&glfw->ctx);
nk_glfw3_device_destroy(glfw); nk_glfw3_device_destroy(glfw);
memset(glfw, 0, sizeof(glfw)); memset(glfw, 0, sizeof(*glfw));
} }
#endif #endif