core-foundation-rs
core-foundation-rs copied to clipboard
Retain calayer after creation
Run create_calayer test:
signal: 11, SIGSEGV: invalid memory reference
:umbrella: The latest upstream changes (presumably b009c87f2da0038bb474800cd88597843e5dbdae) made this pull request unmergeable. Please resolve the merge conflicts.
@xiaopengli89 What is create_calayer test? I'd like to understand the code that is triggering this crash, since I worry that we might end up leaking layer objects with this change.
@xiaopengli89 What is
create_calayertest? I'd like to understand the code that is triggering this crash, since I worry that we might end up leaking layer objects with this change.
Creating CALayer in autoreleasepool, event loop or child thread will trigger this crash, in which case the runtime will hold ownership of the CALayer.
This is also reported in #643