+ fix a memory leak in mesh selection

This commit is contained in:
wmayer
2016-02-24 21:00:26 +01:00
parent 2bbe98cf3f
commit 9ecd306df5

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