Przeglądaj źródła

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

Fixed memory leak with AStar class
Rémi Verschelde 8 lat temu
rodzic
commit
489d1b7eb3
1 zmienionych plików z 1 dodań i 0 usunięć
  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();
 }