Cleanup: free plot data on exit

Some widgets copy the full plot info. Free these data on exit to
prevent monstrous valgrind reports.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-07-15 20:41:42 +02:00 committed by Dirk Hohndel
parent 05a5a06fd3
commit 4e86d99714
6 changed files with 18 additions and 0 deletions

View file

@ -73,6 +73,7 @@ public:
COLUMNS
};
explicit DivePlotDataModel(QObject *parent = 0);
~DivePlotDataModel();
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;