Hopsan / hopsan

Hopsan is a free multi-domain system simulation tool developed at the division of Fluid and mechatronic systems at Linköping university.
Apache License 2.0
162 stars 44 forks source link

All autogenerated components using equationsolver utility will leak memory #613

Closed hopsan-bot closed 6 years ago

hopsan-bot commented 6 years ago

Author Name: Peter Nordin (@peterNordin) Original Redmine Issue: 613, https://flumes.iei.liu.se/redmine/issues/613 Original Date: 2012/06/04 Original Assignee: Björn Eriksson


All autogenerated components using equationsolver utility will leak memory because they use a pointer and create new equationsystemsolver in constructor, but solver is never deleted.

Should have destructor, or do this in initialize and finalize

hopsan-bot commented 6 years ago

Original Redmine Comment Author Name: Björn Eriksson (@bjoer37) Original Date: 2013/01/11 13:23:27 +0100


Still manually built components using equationsystemsolver hasn't been changed. Generator now deletes the object in the finalize method.

hopsan-bot commented 6 years ago

Original Redmine Comment Author Name: Björn Eriksson (@bjoer37) Original Date: 2013/01/11 13:27:29 +0100


Applied in changeset r4877.

hopsan-bot commented 6 years ago

Original Redmine Comment Author Name: Peter Nordin (@peterNordin) Original Date: 2013/01/14 12:21:55 +0100


This is also a problem with in the Mathematic CompGen scripts. They also need to be fixed