From 13b9b054bb1de2fb0510029a68d0ff9615a17a1d Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 7 Sep 2022 08:08:18 +0100 Subject: [PATCH] Fix memory leak Signed-off-by: falkTX --- src/Phaser.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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");