From 794407e7b61911c63af44bf7714ca33582d5cb9a Mon Sep 17 00:00:00 2001 From: Robert Hernandez Date: Sun, 22 Oct 2017 18:37:02 -0400 Subject: [PATCH] Fixed memory leak with AStar class --- core/math/a_star.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/core/math/a_star.cpp b/core/math/a_star.cpp index 4f80fb2491c..ffe10899650 100644 --- a/core/math/a_star.cpp +++ b/core/math/a_star.cpp @@ -443,4 +443,5 @@ AStar::AStar() { AStar::~AStar() { pass = 1; + clear(); }