From 9ecd306df515d26bb678b09df420aea4e5f2ca20 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 b3cb4524ff..df6eb31cf5 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);