+ fix a memory leak in mesh selection

This commit is contained in:
wmayer 2016-02-24 21:00:26 +01:00
parent 35fa65ec96
commit d891ddba33

View File

@ -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);