summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2009-10-27 15:38:42 -0700
committerJason Sams <rjsams@android.com>2009-10-27 15:38:42 -0700
commit81134796071422abd5e43c8d9d51ead1dcdd4c3a (patch)
tree6e496951d016255bfdbcc4901628d1ad4a1e73ea
parentf8bbd34d7d4705b49db202be92b920196bc7ea38 (diff)
downloadandroid_packages_apps_Trebuchet-81134796071422abd5e43c8d9d51ead1dcdd4c3a.tar.gz
android_packages_apps_Trebuchet-81134796071422abd5e43c8d9d51ead1dcdd4c3a.tar.bz2
android_packages_apps_Trebuchet-81134796071422abd5e43c8d9d51ead1dcdd4c3a.zip
Fix leak when receiving multiple surface changed messages, typically when exiting a landscape app.
-rw-r--r--src/com/android/launcher2/AllAppsView.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java
index d842f2d95..2dd3b4de0 100644
--- a/src/com/android/launcher2/AllAppsView.java
+++ b/src/com/android/launcher2/AllAppsView.java
@@ -166,6 +166,12 @@ public class AllAppsView extends RSSurfaceView
long startTime = SystemClock.uptimeMillis();
+ if (mRS != null) {
+ destroyRenderScript();
+ mRS = null;
+ mRollo = null;
+ }
+
mRS = createRenderScript(true);
mRollo = new RolloRS();
mRollo.init(getResources(), w, h);