Closed GoogleCodeExporter closed 8 years ago
Furthermore, adding a cleanUp() method to FrozenGame.java that is called in
GameView.java whenever an old FrozenGame object instance is no longer being
used would be advisable. Currently no cleanup of dyanmically allocated objects
is performed except at the topmost level object in GameView.java.
For example, the Sprites and Vectors can all be null-ified, as well as the
various other objects such as the BubbleSprite array, the Compressor, the
BubbleManager, etc.
Original comment by forter...@gmail.com
on 19 May 2014 at 2:13
Fixed in version 3.2. It was in jni_stubs.cpp - when copying bytes from a
buffer with GetByteArrayElements(), the system will pin the memory so the
garbage collector won't recycle it. It needs to be unpinned via
ReleaseByteArrayElements(), and can also then be deleted via DeleteLocalRef().
Original comment by forter...@gmail.com
on 9 Jun 2014 at 9:58
Original issue reported on code.google.com by
forter...@gmail.com
on 15 May 2014 at 1:32