am 81134796: Fix leak when receiving multiple surface changed messages, typically when exiting a landscape app.

Merge commit '81134796071422abd5e43c8d9d51ead1dcdd4c3a' into eclair-mr2

* commit '81134796071422abd5e43c8d9d51ead1dcdd4c3a':
  Fix leak when receiving multiple surface changed messages, typically when exiting a landscape app.
This commit is contained in:
Jason Sams
2009-10-29 01:22:55 -07:00
committed by Android Git Automerger
@@ -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);