Project

General

Profile

Bug #7915

memory leak in WCartesianChart (wt3.7.0)

Added by jeroen zpam 7 months ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
12/14/2020
Due date:
% Done:

0%

Estimated time:

Description

the x-axis is not destroyed

WCartesianChart::~WCartesianChart()
{
** while (!xAxes_.empty()) {
delete xAxes_.back();
xAxes_.pop_back();
}
** * __ * while (!yAxes_.empty()) {
delete yAxes_.back();
yAxes_.pop_back();
}
delete interface_;
std::vector copy = std::vector(axisSliderWidgets_);
axisSliderWidgets_.clear();
for (std::size_t i = 0; i < copy.size(); ++i) {
copy[i]->setSeries(0);
}
for (std::size_t i = 0; i < series_.size(); ++i) {
delete series_[i];
}
}

Also available in: Atom PDF