Skip to content

Commit

Permalink
add destrct method for batch colour action
Browse files Browse the repository at this point in the history
  • Loading branch information
vsicurella committed Jul 18, 2024
1 parent 452ebff commit b3f1c74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/actions/BatchColourActions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ ApplyBatchColourAdjustments::ApplyBatchColourAdjustments(const LumatoneEditorSta
}
}

ApplyBatchColourAdjustments::~ApplyBatchColourAdjustments()
{
baseLayout = nullptr;
}

bool ApplyBatchColourAdjustments::perform()
{
if (fullLayout)
Expand Down
2 changes: 2 additions & 0 deletions Source/actions/BatchColourActions.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ class ApplyBatchColourAdjustments : public LumatoneEditorState
, LumatoneEditor::BatchColourEditData editData
, const juce::Array<MappedLumatoneKey>& keySelectionIn);

~ApplyBatchColourAdjustments() override;

bool perform() override;
bool undo() override;

Expand Down

0 comments on commit b3f1c74

Please sign in to comment.