Merge pull request #150 from pmcmorris/master

fix incorrect memset size in glfw demo shutdown
This commit is contained in:
dumblob 2020-06-12 08:59:52 +02:00 committed by GitHub
commit 5bc1c2956c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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_free(&glfw->ctx);
nk_glfw3_device_destroy(glfw);
memset(glfw, 0, sizeof(glfw));
memset(glfw, 0, sizeof(*glfw));
}
#endif