Skip to content

Returns Retained objects for methods documented with "The caller assumes no ownership of the returned value and should not CFRelease it." #848

Description

@ColinFinck

AVCaptureDeviceFormat has two methods mediaType and formatDescription that are both documented with:

The caller assumes no ownership of the returned value and should not CFRelease it.

However, both methods also return Retained objects, which implement a Drop handler that calls objc_release_fast.

This gives the impression that memory is being released here when it shouldn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frameworkAffects the framework crates and the translator for themdocumentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions