mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:43:24 +00:00
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 <dirk@hohndel.org>
This commit is contained in:
parent
4dfe12e508
commit
b36f8dd738
1 changed files with 1 additions and 0 deletions
|
@ -852,6 +852,7 @@ void DivePlannerPointsModel::createTemporaryPlan()
|
|||
void DivePlannerPointsModel::deleteTemporaryPlan()
|
||||
{
|
||||
deleteTemporaryPlan(diveplan.dp);
|
||||
diveplan.dp = NULL;
|
||||
delete_single_dive(get_divenr(tempDive));
|
||||
tempDive = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue