Fix future leak

This commit is contained in:
mcrcortex
2025-05-26 16:11:04 +10:00
parent e8e89f022b
commit 28f2e1e881
2 changed files with 8 additions and 0 deletions

View File

@@ -55,4 +55,11 @@ public class GeometryCache {
sec.free();
}
}
public void free() {
this.lock.lock();
this.cache.values().forEach(BuiltSection::free);
this.cache.clear();
this.lock.unlock();
}
}

View File

@@ -736,6 +736,7 @@ public class AsyncNodeManager {
this.scatterWrite.free();
this.multiMemcpy.free();
this.geometryCache.free();
}
public void addDebug(List<String> debug) {