From d891ddba33d8ba70b1c1d52ef4ca63b68504f72f Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 24 Feb 2016 21:00:26 +0100 Subject: [PATCH] + fix a memory leak in mesh selection --- src/Mod/Mesh/Gui/MeshSelection.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Mod/Mesh/Gui/MeshSelection.cpp b/src/Mod/Mesh/Gui/MeshSelection.cpp index b3cb4524f..df6eb31cf 100644 --- a/src/Mod/Mesh/Gui/MeshSelection.cpp +++ b/src/Mod/Mesh/Gui/MeshSelection.cpp @@ -170,6 +170,8 @@ void MeshSelection::prepareBrushSelection(bool add,SoEventCallbackCB *cb) if (viewer) { stopInteractiveCallback(viewer); startInteractiveCallback(viewer, cb); + viewer->navigationStyle()->stopSelection(); + // set cross cursor Gui::BrushSelection* brush = new Gui::BrushSelection(); brush->setClosed(true);