Fix future leak
This commit is contained in:
@@ -55,4 +55,11 @@ public class GeometryCache {
|
|||||||
sec.free();
|
sec.free();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void free() {
|
||||||
|
this.lock.lock();
|
||||||
|
this.cache.values().forEach(BuiltSection::free);
|
||||||
|
this.cache.clear();
|
||||||
|
this.lock.unlock();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -736,6 +736,7 @@ public class AsyncNodeManager {
|
|||||||
|
|
||||||
this.scatterWrite.free();
|
this.scatterWrite.free();
|
||||||
this.multiMemcpy.free();
|
this.multiMemcpy.free();
|
||||||
|
this.geometryCache.free();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addDebug(List<String> debug) {
|
public void addDebug(List<String> debug) {
|
||||||
|
|||||||
Reference in New Issue
Block a user