Merge lp:~daniel-stehn/forssim/MemoryLeakFixInAHapticDrillForce into lp:forssim
Proposed by
Daniel Stehn
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp:~daniel-stehn/forssim/MemoryLeakFixInAHapticDrillForce | ||||
Merge into: | lp:forssim | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp:~daniel-stehn/forssim/MemoryLeakFixInAHapticDrillForce | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Forsslund Systems | Pending | ||
Review via email: mp+11600@code.launchpad.net |
To post a comment you must log in.
Added a destructor for the class AHapticDrillForce that deletes a pointer that never was destructed.
In ADrillForce: :traverseSG( H3D::TraverseInfo &ti ) a pointer "generated_force" is allocated. This pointer becomes a part of another pointer (AHapticDrillFo rce), that is passed into the H3D::TraverseInfo reference.
AHapticDrillForce was responsible to clear the memory allocated by the generated_force pointer, but it didn't. Now there is a destructor that does the cleaning up.