commit e06cb84757bc45c6e682d4e228c46e3d3d0f432e
parent c8a638564a6f4d0b3ab4a48ba9c08151afe47173
Author: falkTX <falktx@gmail.com>
Date: Mon, 18 Aug 2014 04:28:16 +0100
Fix for temporary VST UI used for size
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/distrho/src/DistrhoPluginVST.cpp b/distrho/src/DistrhoPluginVST.cpp
@@ -406,9 +406,10 @@ public:
{
d_lastUiSampleRate = fPlugin.getSampleRate();
- UIExporter tmpUI(nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr);
+ UIExporter tmpUI(nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, fPlugin.getInstancePointer());
fVstRect.right = tmpUI.getWidth();
fVstRect.bottom = tmpUI.getHeight();
+ tmpUI.quit();
}
*(ERect**)ptr = &fVstRect;
ret = 1;