Browse Source

Minor plugin dssi stuff

tags/1.9.4
falkTX 10 years ago
parent
commit
abe856d9dd
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      source/plugin/carla-native-base.cpp

+ 17
- 0
source/plugin/carla-native-base.cpp View File

@@ -23,6 +23,10 @@
#include "CarlaBackendUtils.hpp"
#include "LinkedList.hpp"

#ifdef CARLA_NATIVE_PLUGIN_DSSI
# include "dssi/dssi.h"
#endif

#ifdef CARLA_NATIVE_PLUGIN_LV2
# include "lv2/lv2.h"
#endif
@@ -67,6 +71,16 @@ struct PluginListManager {

~PluginListManager()
{
#ifdef CARLA_NATIVE_PLUGIN_DSSI
for (LinkedList<const DSSI_Descriptor*>::Itenerator it = dssiDescs.begin(); it.valid(); it.next())
{
const DSSI_Descriptor* const dssiDesc(it.getValue());
//delete[] lv2Desc->URI;
delete dssiDesc;
}
dssiDescs.clear();
#endif

#ifdef CARLA_NATIVE_PLUGIN_LV2
for (LinkedList<const LV2_Descriptor*>::Itenerator it = lv2Descs.begin(); it.valid(); it.next())
{
@@ -86,6 +100,9 @@ struct PluginListManager {
return plm;
}

#ifdef CARLA_NATIVE_PLUGIN_DSSI
LinkedList<const DSSI_Descriptor*> dssiDescs;
#endif
#ifdef CARLA_NATIVE_PLUGIN_LV2
LinkedList<const LV2_Descriptor*> lv2Descs;
#endif


Loading…
Cancel
Save