summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Hernandez <killerjaguar26@gmail.com>2017-10-22 18:37:02 -0400
committerRobert Hernandez <killerjaguar26@gmail.com>2017-10-22 18:37:02 -0400
commit794407e7b61911c63af44bf7714ca33582d5cb9a (patch)
tree8b622dc8302d355b60e362562881520c504b8e49
parentbf4ba3d8c0705465d659dce7c0198859859e65af (diff)
Fixed memory leak with AStar class
-rw-r--r--core/math/a_star.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/math/a_star.cpp b/core/math/a_star.cpp
index 4f80fb2491..ffe1089965 100644
--- a/core/math/a_star.cpp
+++ b/core/math/a_star.cpp
@@ -443,4 +443,5 @@ AStar::AStar() {
AStar::~AStar() {
pass = 1;
+ clear();
}