summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-models/divelistmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp
index ba99e47bb..b28bd58a3 100644
--- a/qt-models/divelistmodel.cpp
+++ b/qt-models/divelistmodel.cpp
@@ -76,6 +76,7 @@ void DiveListModel::insertDive(int i, DiveObjectHelper *newDive)
void DiveListModel::removeDive(int i)
{
beginRemoveRows(QModelIndex(), i, i);
+ delete m_dives.at(i);
m_dives.removeAt(i);
endRemoveRows();
}