Fix for some memory leaks issue #657

This commit is contained in:
ffsup2
2011-06-07 20:12:01 +02:00
parent c109330c53
commit fbb9cff8ee
9 changed files with 31 additions and 18 deletions

View File

@@ -97,9 +97,9 @@ CurveEditor::CurveEditor (Glib::ustring text, CurveEditorGroup* ceGroup, CurveEd
subGroup = ceSubGroup;
if (group && text.size())
curveType = Gtk::manage (new PopUpToggleButton(text + ":"));
curveType = new PopUpToggleButton(text + ":");
else
curveType = Gtk::manage (new PopUpToggleButton());
curveType = new PopUpToggleButton();
curveType->set_tooltip_text(M("CURVEEDITOR_TYPE"));
// TODO: Does this signal have to be blocked when on curve type change ?
@@ -108,7 +108,7 @@ CurveEditor::CurveEditor (Glib::ustring text, CurveEditorGroup* ceGroup, CurveEd
}
CurveEditor::~CurveEditor () {
delete curveType;
delete [] histogram;
}