Skip to content

Commit c1e7be3

Browse files
committed
fix incorrect memset size in shutdown for glfw demo
1 parent 1407308 commit c1e7be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo/glfw_opengl3/nuklear_glfw_gl3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ void nk_glfw3_shutdown(struct nk_glfw* glfw)
492492
nk_font_atlas_clear(&glfw->atlas);
493493
nk_free(&glfw->ctx);
494494
nk_glfw3_device_destroy(glfw);
495-
memset(glfw, 0, sizeof(glfw));
495+
memset(glfw, 0, sizeof(*glfw));
496496
}
497497

498498
#endif

0 commit comments

Comments
 (0)