Transferring loads of array variables from Stack to Heap

This commit is contained in:
Hombre
2010-12-27 12:47:45 +01:00
parent 69284246b1
commit 6152b5d9dd
26 changed files with 192 additions and 73 deletions

View File

@@ -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;