Project

General

Profile

Actions

Bug #7915

open

memory leak in WCartesianChart (wt3.7.0)

Added by jeroen zpam almost 4 years ago. Updated almost 4 years 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];
}
}

Actions

Also available in: Atom PDF