Skip to content

Commit

Permalink
issue #1999: [STEP] Tessellation data or OpenInventor data memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Feb 20, 2017
1 parent 112749b commit 6630bcf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Gui/SoFCUnifiedSelection.cpp
Expand Up @@ -395,6 +395,11 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action)
currenthighlight = 0;
//old_state = !highlighted;
}
else if (currenthighlight) {
// clean-up the highlight path before assigning a new path
currenthighlight->unref();
currenthighlight = 0;
}

currenthighlight = static_cast<SoFullPath*>(sa.getPath()->copy());
currenthighlight->ref();
Expand Down

0 comments on commit 6630bcf

Please sign in to comment.