issue #0001999: [STEP] Tessellation data or OpenInventor data memory leak

This commit is contained in:
wmayer 2017-02-20 10:08:18 +01:00
parent 112749bc97
commit 6630bcf9fa

View File

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