Browse Source

Fixed memory leak with AStar class

Robert Hernandez 8 years ago
parent
commit
794407e7b6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/math/a_star.cpp

+ 1 - 0
core/math/a_star.cpp

@@ -443,4 +443,5 @@ AStar::AStar() {
 AStar::~AStar() {
 
 	pass = 1;
+	clear();
 }