From 0db515af64eefeffb5556a8f03923e4554fc8232 Mon Sep 17 00:00:00 2001 From: Kevin Rushforth Date: Fri, 19 Jan 2007 00:12:09 +0000 Subject: Fixed 434: OutOfMemory after creating millions of RenderAtomListInfo objects git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@771 ba19aa83-45c5-6ac9-afd3-db810772062c --- src/classes/share/javax/media/j3d/TransformStructure.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/classes/share') diff --git a/src/classes/share/javax/media/j3d/TransformStructure.java b/src/classes/share/javax/media/j3d/TransformStructure.java index 8320a6c..3d16166 100644 --- a/src/classes/share/javax/media/j3d/TransformStructure.java +++ b/src/classes/share/javax/media/j3d/TransformStructure.java @@ -189,6 +189,9 @@ class TransformStructure extends J3dStructure implements ObjectUpdate { } processVwcBounds(); } + + // Issue 434: clear references to objects that have been processed + objectList.clear(); Arrays.fill(messages, 0, nMsg, null); } -- cgit v1.2.3