From b3f1c748be2d80c29950a3a3d7db53e153ef49f2 Mon Sep 17 00:00:00 2001 From: Vincenzo Sicurella Date: Thu, 18 Jul 2024 02:05:42 -0400 Subject: [PATCH] add destrct method for batch colour action --- Source/actions/BatchColourActions.cpp | 5 +++++ Source/actions/BatchColourActions.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/Source/actions/BatchColourActions.cpp b/Source/actions/BatchColourActions.cpp index 94039e1..086dce9 100644 --- a/Source/actions/BatchColourActions.cpp +++ b/Source/actions/BatchColourActions.cpp @@ -100,6 +100,11 @@ ApplyBatchColourAdjustments::ApplyBatchColourAdjustments(const LumatoneEditorSta } } +ApplyBatchColourAdjustments::~ApplyBatchColourAdjustments() +{ + baseLayout = nullptr; +} + bool ApplyBatchColourAdjustments::perform() { if (fullLayout) diff --git a/Source/actions/BatchColourActions.h b/Source/actions/BatchColourActions.h index 79aa64e..e76b397 100644 --- a/Source/actions/BatchColourActions.h +++ b/Source/actions/BatchColourActions.h @@ -58,6 +58,8 @@ class ApplyBatchColourAdjustments : public LumatoneEditorState , LumatoneEditor::BatchColourEditData editData , const juce::Array& keySelectionIn); + ~ApplyBatchColourAdjustments() override; + bool perform() override; bool undo() override;