Merge "SurfaceView: Release Surface with SurfaceControl." into oc-dev

This commit is contained in:
Rob Carr
2017-05-09 15:49:20 +00:00
committed by Android (Google) Code Review

View File

@@ -678,6 +678,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
mIsCreating = false;
if (mSurfaceControl != null && !mSurfaceCreated) {
mSurfaceControl.destroy();
mSurface.release();
mSurfaceControl = null;
}
}