Browse Source

Merge pull request #12332 from robertdhernandez/AStar-Memory-Leak-Fix

Fixed memory leak with AStar class
Rémi Verschelde 7 years ago
parent
commit
489d1b7eb3
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();
 }