Skip to content

Missing retain in CALayer::new #643

@madsmtm

Description

@madsmtm

+[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions