We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a280fe2 + f1395bc commit aa1f53dCopy full SHA for aa1f53d
src/agent/agent.cpp
@@ -163,7 +163,14 @@ namespace behaviac {
163
}
164
165
166
-
+
167
+ for (behaviac::map<uint32_t, IValue*>::iterator it = _members.begin(); it != _members.end(); ++it)
168
+ {
169
+ if (it->second)
170
171
+ BEHAVIAC_DELETE(it->second);
172
+ }
173
174
#endif
175
176
for (BehaviorTreeTasks_t::iterator it = this->m_behaviorTreeTasks.begin(); it != m_behaviorTreeTasks.end(); ++it) {
@@ -176,6 +183,7 @@ namespace behaviac {
183
177
184
if (this->m_variables != NULL) {
178
185
this->m_variables->Clear(true);
186
+ BEHAVIAC_DELETE(this->m_variables);
179
187
180
188
181
189
0 commit comments