MCPcopy Create free account
hub / github.com/DISTRHO/DPF / Cleanup

Class Cleanup

distrho/src/DistrhoPluginVST2.cpp:1299–1313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1297static ScopedPointer<PluginExporter> sPlugin;
1298
1299static struct Cleanup {
1300 std::vector<ExtendedAEffect*> effects;
1301
1302 ~Cleanup()
1303 {
1304 for (std::vector<ExtendedAEffect*>::iterator it = effects.begin(), end = effects.end(); it != end; ++it)
1305 {
1306 ExtendedAEffect* const exteffect = *it;
1307 delete exteffect->pluginPtr;
1308 delete exteffect;
1309 }
1310
1311 sPlugin = nullptr;
1312 }
1313} sCleanup;
1314
1315// --------------------------------------------------------------------------------------------------------------------
1316

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected