We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 685664a commit eb06400Copy full SHA for eb06400
1 file changed
src/griddyn/governors/Governor.cpp
@@ -83,8 +83,14 @@ CoreObject* Governor::clone(CoreObject* obj) const
83
return gov;
84
}
85
86
-// destructor
87
-Governor::~Governor() = default;
+// Embedded blocks are stack members, so detach them from the generic subobject list
+// before base-class teardown walks that list.
88
+Governor::~Governor()
89
+{
90
+ removeSubObject(&delay);
91
+ removeSubObject(&cb);
92
+ removeSubObject(&dbb);
93
+}
94
95
void Governor::dynObjectInitializeA(CoreTime time0, std::uint32_t flags)
96
{
0 commit comments