Memory leaks detected in Kotlin/Native framework in the following example file. It may be cause from the callback function in the Kotlin. I have no ideas to solve this issue....
Launch the app and click on green button to init the detector and click on the red button to kill the detector repeatedly, and you will see the crash log shortly about "Memory leaks detected, x objects leaked!"