]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Protection from crash on close app.
authoradv <adv@opencascade.com>
Mon, 9 Dec 2013 08:05:30 +0000 (08:05 +0000)
committeradv <adv@opencascade.com>
Mon, 9 Dec 2013 08:05:30 +0000 (08:05 +0000)
src/HYDROGUI/HYDROGUI_PolylineOp.cxx

index 889a13362e7eae9e44834a5c49302c1c91246ca1..b9fd474b75c12ff53cc7a5804a6e28b0e4225b40 100755 (executable)
@@ -327,4 +327,11 @@ void HYDROGUI_PolylineOp::erasePreview()
       }
     }
   }
+
+  myViewManager = NULL;
+  if ( myCurve )
+  {
+    delete myCurve;
+    myCurve = NULL;
+  }
 }