We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 641a5cb commit 71d3004Copy full SHA for 71d3004
1 file changed
include/fmi4cpp/fmu_instance_base.hpp
@@ -70,19 +70,13 @@ class fmu_instance_base : public virtual fmu_instance<model_description>
70
return library_->reset(c_);
71
}
72
73
- bool terminate() override
74
- {
75
- return terminate(true);
76
- }
77
-
78
- bool terminate(bool freeInstance)
+ bool terminate()
79
{
80
if (!this->terminated_) {
81
this->terminated_ = true;
82
if (!library_->terminate(c_)) {
83
return false;
84
85
- this->free_instance();
86
87
return true;
88
@@ -257,6 +251,7 @@ class fmu_instance_base : public virtual fmu_instance<model_description>
257
251
~fmu_instance_base()
258
252
259
253
terminate();
254
+ free_instance();
260
255
261
256
};
262
0 commit comments