diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-07-15 20:41:42 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-11-09 19:19:04 +0100 |
commit | 4e86d997141dc7cd9e83b6c6a4a47ebdcaa4ebd6 (patch) | |
tree | c211c83947404bef6c0e64ba5f7ea4d531e42a1f /qt-models/diveplotdatamodel.h | |
parent | 05a5a06fd3905db25208a0f794b54cf27e580904 (diff) | |
download | subsurface-4e86d997141dc7cd9e83b6c6a4a47ebdcaa4ebd6.tar.gz |
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>
Diffstat (limited to 'qt-models/diveplotdatamodel.h')
-rw-r--r-- | qt-models/diveplotdatamodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/diveplotdatamodel.h b/qt-models/diveplotdatamodel.h index 87c31198d..6267d3705 100644 --- a/qt-models/diveplotdatamodel.h +++ b/qt-models/diveplotdatamodel.h @@ -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; |