OSDN Git Service

Don't recycle native bitmap after the finalizer is called.
authorChih-Chung Chang <chihchung@google.com>
Fri, 20 Aug 2010 09:10:49 +0000 (17:10 +0800)
committerChih-Chung Chang <chihchung@google.com>
Fri, 20 Aug 2010 09:10:49 +0000 (17:10 +0800)
commit966803ab81f8e9bfefa502fcb533de023825a389
tree6596c16b0149b4cce395738f91611b62ec557656
parent2f6d975b93bbc5b55c35a00d913ee38ad9b76401
Don't recycle native bitmap after the finalizer is called.

If an object A's finalizer calls Bitmap B's recycle() when B's
finalizer is already called, we will have trouble because the
native bitmap is already freed in the finalizer.

Change-Id: Ic0be8ed75fb3aacee9ce6e3d9908178a55151eb9
graphics/java/android/graphics/Bitmap.java