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; } /*!