Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
metadata: try to upgrade Weak before returning a pointer
Weak::as_ptr() can return an invalid pointer. It can be even dangling (non-null). It's safer to try to upgrade to an Arc. If upgrade was successful, make use of RefFFI API to return a valid pointer. Otherwise, return non-dangling null pointer.
- Loading branch information