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

Merge commit '477f9cd577da857347443c35056cb03dea47cf0a' into eclair-mr2-plus-aosp

* commit '477f9cd577da857347443c35056cb03dea47cf0a':
  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:47:40 -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);