Transferring loads of array variables from Stack to Heap

This commit is contained in:
Hombre
2011-01-01 03:28:27 +01:00
parent 5ee87be11b
commit 9fa432880c
26 changed files with 190 additions and 72 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;