From: rnv Date: Thu, 4 Jun 2020 13:03:54 +0000 (+0300) Subject: Fix for #19204 [CEA][Windows] VTK Viewer - Access violation while right clicking X-Git-Tag: V9_5_0rc1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=858acd1a9c89fad5627a7c505003c05350441bb7;p=modules%2Fgui.git Fix for #19204 [CEA][Windows] VTK Viewer - Access violation while right clicking --- diff --git a/src/SVTK/SVTK_InteractorStyle.cxx b/src/SVTK/SVTK_InteractorStyle.cxx index de6fc98f9..88d61b8c3 100644 --- a/src/SVTK/SVTK_InteractorStyle.cxx +++ b/src/SVTK/SVTK_InteractorStyle.cxx @@ -1773,7 +1773,9 @@ void SVTK_InteractorStyle::endDrawPolygon() { if ( myPolygonBand ) myPolygonBand->hide(); - delete myPolygonBand; + // RNV fix for : #19204 [CEA][Windows] VTK Viewer - Access violation while right clicking + //delete myPolygonBand; + myPolygonBand->deleteLater(); myPolygonBand = 0; myPolygonPoints.clear();