gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

commit 29df0980fa9c73088bd2afb6afd82c8c4eebf5ed
parent 31646183280a136e4c1addc3aae7822fbdd8dd7e
Author: Tal Aviram <me@talaviram.com>
Date:   Wed,  2 Feb 2022 23:06:49 +0200

fix editor leaking objects, issue #53

Diffstat:
Msource/jucePlugin/ui/Virus_Buttons.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/jucePlugin/ui/Virus_Buttons.cpp b/source/jucePlugin/ui/Virus_Buttons.cpp @@ -109,10 +109,10 @@ namespace Buttons auto on = Drawable::createFromImageData(BinaryData::part_select_btn_36x36_png, BinaryData::part_select_btn_36x36_pngSize); - const auto empty = new DrawableText(); + const auto empty = std::make_unique<DrawableText>(); setColour(DrawableButton::ColourIds::backgroundColourId, Colours::transparentBlack); setColour(DrawableButton::ColourIds::backgroundOnColourId, Colours::transparentBlack); - setImages(empty, nullptr, on.get(), nullptr, on.get(), nullptr, nullptr); + setImages(empty.get(), nullptr, on.get(), nullptr, on.get(), nullptr, nullptr); } }; // namespace Buttons