Browse Source

Fix for a ref-count issue in VST2 plugin windows

tags/2021-05-28
jules 10 years ago
parent
commit
d9e31b9070
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm

+ 2
- 1
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.mm View File

@@ -152,7 +152,7 @@ void* attachComponentToWindowRef (Component* comp, void* parentWindowOrView, boo
#endif
(void) isNSView;
NSView* parentView = (NSView*) parentWindowOrView;
NSView* parentView = [(NSView*) parentWindowOrView retain];
#if JucePlugin_EditorRequiresKeyboardFocus
comp->addToDesktop (0, parentView);
@@ -221,6 +221,7 @@ void detachComponentFromWindowRef (Component* comp, void* window, bool isNSView)
(void) isNSView; (void) window;
comp->removeFromDesktop();
[window release];
}
}


Loading…
Cancel
Save