We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 350e90e commit f1e37e7Copy full SHA for f1e37e7
.gitignore
@@ -1,4 +1,5 @@
1
build
2
tags
3
.DS_Store
4
+.ycm_extra_conf.py
5
BehaviorTree/include/node.h
@@ -50,6 +50,15 @@ class Node {
50
delete[] children_;
51
children_ = NULL;
52
size_ = 0;
53
+
54
+#ifdef Py_DEBUG
55
+ // The process terminates and the destruction is called by static variable's destructor(~NodeManager()).
56
+ // The Python interpreter is finalized at the moment.
57
+ if (!Py_IsInitialized()) {
58
+ return;
59
+ }
60
+#endif
61
62
Py_XDECREF(function_);
63
function_ = NULL;
64
}
0 commit comments