Fix for some memory leaks issue #657
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user