Transferring loads of array variables from Stack to Heap
This commit is contained in:
@@ -37,6 +37,8 @@ CurveEditor::CurveEditor (Glib::ustring text, CurveEditorGroup* ceGroup) {
|
||||
bgHistValid = false;
|
||||
selected = Linear;
|
||||
|
||||
histogram = new unsigned int[256]; // histogram values
|
||||
|
||||
group = ceGroup;
|
||||
|
||||
if (group && text.size())
|
||||
@@ -58,11 +60,11 @@ CurveEditor::CurveEditor (Glib::ustring text, CurveEditorGroup* ceGroup) {
|
||||
curveType->show();
|
||||
}
|
||||
|
||||
/*
|
||||
CurveEditor::~CurveEditor () {
|
||||
|
||||
delete [] histogram;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
void CurveEditor::setCurve (const std::vector<double>& p) {
|
||||
tempCurve = p;
|
||||
|
Reference in New Issue
Block a user