Merge "SurfaceView: Release Surface with SurfaceControl." into oc-dev
am: 3630fd4e11
Change-Id: I8c841d11033c9bf18987b59edce0ccf93bb984b9
This commit is contained in:
@@ -678,6 +678,7 @@ public class SurfaceView extends View implements ViewRootImpl.WindowStoppedCallb
|
|||||||
mIsCreating = false;
|
mIsCreating = false;
|
||||||
if (mSurfaceControl != null && !mSurfaceCreated) {
|
if (mSurfaceControl != null && !mSurfaceCreated) {
|
||||||
mSurfaceControl.destroy();
|
mSurfaceControl.destroy();
|
||||||
|
mSurface.release();
|
||||||
mSurfaceControl = null;
|
mSurfaceControl = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user