We need to null out this static.

All of the crashes we've been seeing with "Calling RS with no
Context active" were in places that are guarded with if (mRollo != null).

Change-Id: Icb9194cfc4f534bedce5a69a20760a0c3d7fe1d3
This commit is contained in:
Joe Onorato 2010-03-17 20:03:24 -07:00
parent 8ddc4fdba0
commit 96da4012a1
1 changed files with 2 additions and 0 deletions

View File

@ -204,8 +204,10 @@ public class AllApps3D extends RSSurfaceView
protected void onDetachedFromWindow() {
mRS.mMessageCallback = null;
if (!mSurrendered) {
Log.i(TAG, "onDetachedFromWindow");
destroyRenderScript();
mRS = null;
mRollo = null;
}
}