core-foundation-rs
core-foundation-rs copied to clipboard
Missing `retain` in `CALayer::new`
+[CALayer layer]
returns an autoreleased instance, but CALayer::new
fails to retain said instance.
This leads to a double-free in CALayer
's Drop
implementation.