Browse Source

VST2: use a vector for cleanup effects instead of list

Signed-off-by: falkTX <falktx@falktx.com>
pull/327/head
falkTX 4 years ago
parent
commit
0a16af9e6c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      distrho/src/DistrhoPluginVST2.cpp

+ 3
- 3
distrho/src/DistrhoPluginVST2.cpp View File

@@ -42,9 +42,9 @@
#define VST_FORCE_DEPRECATED 0

#include <clocale>
#include <list>
#include <map>
#include <string>
#include <vector>

#if VESTIGE_HEADER
# include "vestige/vestige.h"
@@ -1637,11 +1637,11 @@ static void vst_processReplacingCallback(AEffect* effect, float** inputs, float*
#undef vstObjectPtr

static struct Cleanup {
std::list<AEffect*> effects;
std::vector<AEffect*> effects;

~Cleanup()
{
for (std::list<AEffect*>::iterator it = effects.begin(), end = effects.end(); it != end; ++it)
for (std::vector<AEffect*>::iterator it = effects.begin(), end = effects.end(); it != end; ++it)
{
AEffect* const effect = *it;
delete (VstObject*)effect->object;


Loading…
Cancel
Save