From: adv Date: Mon, 9 Dec 2013 08:05:30 +0000 (+0000) Subject: Protection from crash on close app. X-Git-Tag: BR_hydro_v_0_5~34 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a030863ebde99ebd9aa65d163315855b83c35ec6;p=modules%2Fhydro.git Protection from crash on close app. --- 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; + } }