diff options
Diffstat (limited to 'src/classes/com/sun/opengl/impl')
-rwxr-xr-x | src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java b/src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java index 6057f7bb9..3a77b3bd1 100755 --- a/src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java +++ b/src/classes/com/sun/opengl/impl/packrect/RectanglePacker.java @@ -287,7 +287,8 @@ public class RectanglePacker { BackingStoreManager. This RectanglePacker may no longer be used after calling this method. */ public void dispose() { - manager.deleteBackingStore(backingStore); + if (backingStore != null) + manager.deleteBackingStore(backingStore); backingStore = null; levels = null; } |