Project

General

Profile

Bug #5510 » 0002-Fix-double-delete.patch

Bruce Toll, 01/23/2017 07:53 PM

View differences:

src/Wt/Chart/WCartesianChart.C
void WCartesianChart::paint(WPainter& painter, const WRectF& rectangle) const
{
while (!areas().empty())
delete const_cast<WCartesianChart *>(this)->areas().front();
for (auto area: areas())
const_cast<WCartesianChart *>(this)->removeArea(area);
if (!painter.isActive())
throw WException("WCartesianChart::paint(): painter is not active.");
(2-2/2)