Skip to content
Snippets Groups Projects
Commit 2151af53 authored by Septen's avatar Septen
Browse files

ParameterEditor class: fixed crash and memory leak issues.

parent 51e07da2
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,7 @@ ParameterEditor::ParameterEditor (GenericProcessor* processor, Parameter& parame
label->setColour (Label::textColourId, Colours::darkgrey);
label->setFont (labelFont);
label->setBounds (10, 1, 100, 10);
m_labelsArray.add (label);
addAndMakeVisible (label);
desiredWidth = 120;
......@@ -75,6 +76,7 @@ ParameterEditor::ParameterEditor (GenericProcessor* processor, Parameter& parame
label->setColour (Label::textColourId, Colours::darkgrey);
label->setFont (labelFont);
label->setBounds ((80 - width) / 2 - 5, 70, 100, 10);
m_labelsArray.add (label);
addAndMakeVisible (label);
desiredWidth = 80;
......@@ -90,6 +92,7 @@ ParameterEditor::ParameterEditor (GenericProcessor* processor, Parameter& parame
label->setColour (Label::textColourId, Colours::darkgrey);
label->setFont (labelFont);
label->setBounds (0, 0, 100, 10);
m_labelsArray.add (label);
addAndMakeVisible (label);
Array<var> possibleValues = parameter.getPossibleValues();
......
......@@ -68,13 +68,14 @@ public:
private:
bool m_activationState;
GenericProcessor* m_processor;
Parameter* m_parameter;
ScopedPointer<ChannelSelector> m_channelSelector;
GenericProcessor* m_processor;
ChannelSelector* m_channelSelector;
OwnedArray<ParameterSlider> m_sliderArray;
OwnedArray<ParameterButton> m_buttonArray;
OwnedArray<ParameterCheckbox> m_checkboxArray;
OwnedArray<Label> m_labelsArray;
Array<int> m_buttonIdArray;
Array<int> m_sliderIdArray;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment