From 8c2240c1bb619e4d416363d201f8657f9b352c27 2012-03-22 08:12:38 From: Michal Klocek Date: 2012-03-22 08:12:38 Subject: [PATCH] Bugfix: delete presenter first, before root of all graphical items --- diff --git a/src/qchart.cpp b/src/qchart.cpp index 2fba18f..317ab0a 100644 --- a/src/qchart.cpp +++ b/src/qchart.cpp @@ -68,6 +68,9 @@ QChart::QChart(QGraphicsItem *parent, Qt::WindowFlags wFlags) : QGraphicsWidget( */ QChart::~QChart() { + //delete first presenter , since this is a root of all the graphical items + delete m_presenter; + m_presenter=0; } /*!