Skip to content

Feature Request: Automatic alloc and free for FFmpeg wrapped objects #157

@longnguyen2004

Description

@longnguyen2004

Current Situation

Currently, Alloc and Free has to be manually called for each object, which can potentially leak memory if Free isn't called due to e.g. an exception. This also doesn't match with JavaScript being a managed language with a GC, where developers expected everything to handle memory by itself without using alloc and free functions.

Proposed Solution

All FFmpeg wrapped objects should manage their own memory

API Level

Both

Alternative Solutions

No response

FFmpeg Reference

No response

Use Cases

Better developer experience

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions