From b36f8dd738963faae31312deca014c438e53e516 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 30 May 2014 11:01:37 -0700 Subject: Planner: after freeing the plan, throw away the pointer Otherwise we'll happily go back and access the freed data structures later. Oops. Signed-off-by: Dirk Hohndel --- qt-ui/diveplanner.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qt-ui/diveplanner.cpp') diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index bb00299b8..2b1662f7d 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -852,6 +852,7 @@ void DivePlannerPointsModel::createTemporaryPlan() void DivePlannerPointsModel::deleteTemporaryPlan() { deleteTemporaryPlan(diveplan.dp); + diveplan.dp = NULL; delete_single_dive(get_divenr(tempDive)); tempDive = NULL; } -- cgit v1.2.3-70-g09d2