diff --git a/src/Phaser.cpp b/src/Phaser.cpp index 62b8a4c..4cef9fd 100644 --- a/src/Phaser.cpp +++ b/src/Phaser.cpp @@ -161,8 +161,10 @@ struct PhaserFx : Module{ configInput(BYPASS_CV_INPUT, "Bypass CV"); //Outputs configOutput(OUT, "Audio"); + } - + ~PhaserFx() override { + delete pha; } void process(const ProcessArgs &args) override; @@ -288,4 +290,4 @@ struct PhaserFxWidget : ModuleWidget { }; -Model *modelPhaserFx = createModel("PhaserFx"); \ No newline at end of file +Model *modelPhaserFx = createModel("PhaserFx");