From fab744014aa7eb5651a2c46a13c2a0df5d2f603e Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Wed, 11 Nov 2009 16:05:23 -0800 Subject: [PATCH] Fix bug 2249797 - Launcher2 leaking textures on locale change --- src/com/android/launcher2/AllAppsView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index a4891dafb1..7f6e8ff735 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -179,6 +179,8 @@ public class AllAppsView extends RSSurfaceView public void surfaceDestroyed(SurfaceHolder holder) { super.surfaceDestroyed(holder); mRollo.mHasSurface = false; + // Without this, we leak mMessageCallback which leaks the context. + mRS.mMessageCallback = null; } @Override