Skip to content

Consider implementing Drop for NSAutoreleasePool? #179

@bors-servo

Description

@bors-servo

Issue by application-developer-DA
Tuesday Apr 04, 2017 at 11:55 GMT
Originally opened as servo/cocoa-rs#161


Does it make sense to implement a Drop trait for NSAutoreleasePool, so it is called whenever NSAutoreleasePool goes out of scope. It turns out that if the user does not call NSAutoreleasePool::drain() / NSAutoreleasePool::release() manually, the memory will be leaked (by the way the examples from the repository do not call drain, release as well).

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