Browse Source

Modified StandaloneFilterWindow to take an extra argument for setting ownership of the property set.

tags/2021-05-28
jules 11 years ago
parent
commit
0147476afb
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h

+ 4
- 4
modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterWindow.h View File

@@ -44,8 +44,8 @@ public:
store its settings - the object that is passed-in will be owned by this
class and deleted automatically when no longer needed. (It can also be null)
*/
StandalonePluginHolder (PropertySet* settingsToUse)
: settings (settingsToUse)
StandalonePluginHolder (PropertySet* settingsToUse, bool takeOwnershipOfSettings)
: settings (settingsToUse, takeOwnershipOfSettings)
{
createPlugin();
setupAudioDevices();
@@ -215,7 +215,7 @@ public:
}
//==============================================================================
ScopedPointer<PropertySet> settings;
OptionalScopedPointer<PropertySet> settings;
ScopedPointer<AudioProcessor> processor;
AudioDeviceManager deviceManager;
AudioProcessorPlayer player;
@@ -271,7 +271,7 @@ public:
optionsButton.addListener (this);
optionsButton.setTriggeredOnMouseDown (true);
pluginHolder = new StandalonePluginHolder (settingsToUse);
pluginHolder = new StandalonePluginHolder (settingsToUse, false);
createEditorComp();


Loading…
Cancel
Save