Skip to content

Fix VST3 COM Ptr incorrect initialization in headless format (#1673)#1674

Open
vlerdf wants to merge 1 commit into
juce-framework:developfrom
vlerdf:fix/vst3-com-ptr-leak
Open

Fix VST3 COM Ptr incorrect initialization in headless format (#1673)#1674
vlerdf wants to merge 1 commit into
juce-framework:developfrom
vlerdf:fix/vst3-com-ptr-leak

Conversation

@vlerdf

@vlerdf vlerdf commented Jun 18, 2026

Copy link
Copy Markdown

Description

This PR fixes a memory leak during headless VST3 scanning, as reported in #1673.
The VSTComSmartPtr host was incorrectly initialized with IncrementRef::yes, resulting in an incorrect reference count of 2. Changed it to IncrementRef::no to match the standard initialization behavior of other VST3 host context pointers in the codebase.

Fixes #1673.

@vlerdf vlerdf closed this Jun 18, 2026
@vlerdf vlerdf reopened this Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant