Offtopic: is anyone familiar with JNA? Do you need...
# tornadofx
a
Offtopic: is anyone familiar with JNA? Do you need to free memory after? Like
Copy code
val ptr = PointerByReference()
winapi_call(ptr)
// utilize ptr value
free(ptr) // ???
l
I assume you would need, and it could be safer to free it in a
finally
block without potentially failing code before in the
finally
block
a
Thanks, I think you're right!