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

This commit is contained in:
Jason Sams
2009-10-27 15:38:42 -07:00
parent f8bbd34d7d
commit 8113479607
@@ -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);