summaryrefslogtreecommitdiffstats
path: root/qt-ui/diveplanner.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-19 11:41:09 -0500
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-19 15:06:39 -0500
commit77f9bf06fded941aeff049cf5d3c0c3f2785d011 (patch)
tree2aba8de2c7e0af36a37bd3f0938da19e4e5ff733 /qt-ui/diveplanner.h
parent6ed189f32c466f99167ab6657264a45da4b56e8e (diff)
downloadsubsurface-77f9bf06fded941aeff049cf5d3c0c3f2785d011.tar.gz
Planner: correctly free divedatapoints
Simply setting the pointer to NULL leaks memory. And that C++ recursive two function implementation... oh boy. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.h')
-rw-r--r--qt-ui/diveplanner.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.h b/qt-ui/diveplanner.h
index 468893bba..da2f6526b 100644
--- a/qt-ui/diveplanner.h
+++ b/qt-ui/diveplanner.h
@@ -101,7 +101,6 @@ private:
Mode mode;
bool recalc;
QVector<divedatapoint> divepoints;
- void deleteTemporaryPlan(struct divedatapoint *dp);
QVector<sample> backupSamples; // For editing added dives.
QVector<QPair<int, int> > oldGases;
QDateTime startTime;