Skip to content

Timing when a user needs to call DecRef(Release) is very unclear #5

@disktnk

Description

@disktnk

It's very unclear to me when a user must calll DecRef and must not call DecRef. We should provide a consistent rule to avoid memory leaks.

In this kind of library, a user generally needs to call DecRef on every object returned from any function. Although it increases code size, it's a lot safer than providing inconsistent rules.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions