aboutsummaryrefslogtreecommitdiffstats
path: root/core/dive.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-07-18 18:42:01 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-07-19 02:43:08 +0300
commitb51e616b6a2af91f63cfa32d641d5898b10314ff (patch)
tree94d59245a3c09d829c258c84e5b3fd829ad1f60b /core/dive.h
parent6c95714b9fc6af72b6d82564ac6f7f7148b8e5ed (diff)
downloadsubsurface-b51e616b6a2af91f63cfa32d641d5898b10314ff.tar.gz
Undo: clear list of trips to be recreated in UndoDeleteDive::undo()
UndoDeleteDive::tripList kept track of the trips to be recreated on undo. But the list wasn't cleared on undo, thus on subsequent redo the same trip was readded to the list, leading to double-free. This could trivially be reproduced by repeated CTRL-Z, CTRL-SHIFT-Z pairs. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.h')
0 files changed, 0 insertions, 0 deletions