From a030863ebde99ebd9aa65d163315855b83c35ec6 Mon Sep 17 00:00:00 2001 From: adv Date: Mon, 9 Dec 2013 08:05:30 +0000 Subject: [PATCH] Protection from crash on close app. --- src/HYDROGUI/HYDROGUI_PolylineOp.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx index 889a1336..b9fd474b 100755 --- a/src/HYDROGUI/HYDROGUI_PolylineOp.cxx +++ b/src/HYDROGUI/HYDROGUI_PolylineOp.cxx @@ -327,4 +327,11 @@ void HYDROGUI_PolylineOp::erasePreview() } } } + + myViewManager = NULL; + if ( myCurve ) + { + delete myCurve; + myCurve = NULL; + } } -- 2.39.2