diff --git a/src/main/java/com/seibel/lod/proxy/ClientProxy.java b/src/main/java/com/seibel/lod/proxy/ClientProxy.java index fa48acaeb..68380afc8 100644 --- a/src/main/java/com/seibel/lod/proxy/ClientProxy.java +++ b/src/main/java/com/seibel/lod/proxy/ClientProxy.java @@ -254,6 +254,12 @@ public class ClientProxy // breaking when changing worlds. renderer.destroyBuffers(); recalculateWidths = true; + + + // make sure the nulled objects are freed. + // (this prevents a out of memory error when + // changing worlds) + System.gc(); } }