robovm icon indicating copy to clipboard operation
robovm copied to clipboard

* fixed: #684 -- crash on GC when releasing object that fails to `init`

Open dkimitsa opened this issue 3 years ago • 0 comments

root case

when init return nil -- it calls -release on allocated object. but objc code was keeping old handle returned by +alloc. as result when Java object with this handle was disposed by GC -- it was calling -release on this zombie handle that caused EXC_BAD_ACCESS

dkimitsa avatar Sep 25 '22 17:09 dkimitsa