Fix memory leak when iterating path

This commit is contained in:
2023-11-23 19:35:59 +01:00
parent a17450dd81
commit 6e977b7433
6 changed files with 17 additions and 2 deletions

View File

@@ -84,7 +84,6 @@ static void smoothPath(BzTileMap *map, PathData *pathData, BzObjectPool *pool) {
prevIdx++;
nextIdx++;
bzLogInfo("%llu,%llu", prevIdx, nextIdx);
if (prevIdx >= currPathLen) {
prevPath = prevPath->next;