issue #0001999: [STEP] Tessellation data or OpenInventor data memory leak
This commit is contained in:
parent
112749bc97
commit
6630bcf9fa
|
@ -395,6 +395,11 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action)
|
||||||
currenthighlight = 0;
|
currenthighlight = 0;
|
||||||
//old_state = !highlighted;
|
//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 = static_cast<SoFullPath*>(sa.getPath()->copy());
|
||||||
currenthighlight->ref();
|
currenthighlight->ref();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user