Skip to content

Memory leak from frame.toBytes() #54

@Froxcey

Description

@Froxcey

In my code base, I'm calling mat.toByte() every frame
Since that function allocates memory on heap, it causes memory leak
Is there a way to do something like

var bytes = mat.toBytes();
defer mat.freeBytes();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions