Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Preventing memory leak when plugin is unloaded #41

Open
@Boscop

Description

@Boscop

We are using Box::into_raw in VSTPluginMain but when a plugin is unloaded in a host, how will the memory get freed?
How are hosts usually freeing the memory when unloading a vst dll?
Are hosts usually calling delete aeffect; on the pointer returned by VSTPluginMain (assuming that they were written in C++)? Or are they not even trying to free the memory?

It might not happen often that plugins are unloaded/reloaded but we should still strive to avoid memory leaks..

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions