Fix leaking the axis adjusters in the coordinate adjuster.
This commit is contained in:
@@ -103,6 +103,12 @@ CoordinateAdjuster::CoordinateAdjuster(CoordinateProvider *provider, CurveEditor
|
|||||||
createWidgets(defaultAxis);
|
createWidgets(defaultAxis);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CoordinateAdjuster::~CoordinateAdjuster()
|
||||||
|
{
|
||||||
|
for (std::vector<AxisAdjuster*>::iterator iterator = axisAdjusters.begin(); iterator != axisAdjusters.end(); ++iterator)
|
||||||
|
delete *iterator;
|
||||||
|
}
|
||||||
|
|
||||||
void CoordinateAdjuster::createWidgets(const std::vector<Axis> &axis)
|
void CoordinateAdjuster::createWidgets(const std::vector<Axis> &axis)
|
||||||
{
|
{
|
||||||
unsigned int count = axis.size();
|
unsigned int count = axis.size();
|
||||||
|
@@ -136,7 +136,7 @@ public:
|
|||||||
/// For more complex adjuster
|
/// For more complex adjuster
|
||||||
CoordinateAdjuster(CoordinateProvider *provider, CurveEditorSubGroup *parent, const std::vector<Axis> &axis);
|
CoordinateAdjuster(CoordinateProvider *provider, CurveEditorSubGroup *parent, const std::vector<Axis> &axis);
|
||||||
|
|
||||||
virtual ~CoordinateAdjuster() {}
|
virtual ~CoordinateAdjuster();
|
||||||
|
|
||||||
// Update the Axis list, e.g. on Curve change, but MUST have the same axis count
|
// Update the Axis list, e.g. on Curve change, but MUST have the same axis count
|
||||||
void setAxis(const std::vector<Axis> &axis);
|
void setAxis(const std::vector<Axis> &axis);
|
||||||
|
Reference in New Issue
Block a user