Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix memory leak in OpenSim::CoordinateCouplerConstraint::setFunction … #3547

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ own the property `path` of type `AbstractPath` instead of the `GeometryPath` unn
been added to these forces to provide access to concrete path types (e.g., `updPath<T>`). In `Ligament` and
`Blankevoort1991Ligament`, usages of `get_GeometryPath`, `upd_GeometryPath`, etc., need to be been updated to
`getGeometryPath`, `updGeometryPath`, etc., or a suitable alternative.
- Fixed a minor memory leak when calling `OpenSim::CoordinateCouplerConstraint::setFunction` (#3541)

v4.4.1
======
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ OpenSim_DECLARE_CONCRETE_OBJECT(CoordinateCouplerConstraint, Constraint);
return function.getValue();
}
void setFunction(const Function &aFunction)
{ set_coupled_coordinates_function(*aFunction.clone());}
{ set_coupled_coordinates_function(aFunction); }
void setFunction(Function *aFunction)
{ set_coupled_coordinates_function(*aFunction); }

Expand Down