Java glfwSetScrollCallback, do to ‘cbfun’ for Memory Leaks?

I was just curious ... when using glfwSetScrollCallback(window, scrollfun) in java, GLFW 3.2, do I need to release/remove the callback at anytime, as in, glfwSetScrollCallback(window, null)? Will it cause memory leaks or increased usage if I do not?

I just want to make sure that I am using it without causing too much additional strain. I do understand that I can use this to disable getting the callback at certain times, which is nice, and kind of handy to multi game builds, etc.

Read more here:

Content Attribution

This content was originally published by Denver William at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: