Merge "Properly close Surface when done." into jb-mr2-dev

This commit is contained in:
Craig Mautner
2013-03-18 20:57:26 +00:00
committed by Android (Google) Code Review

View File

@@ -234,6 +234,7 @@ class ScreenRotationAnimation {
mSurfaceControl.setLayer(FREEZE_LAYER + 1);
mSurfaceControl.setAlpha(0);
mSurfaceControl.show();
sur.destroy();
} catch (SurfaceControl.OutOfResourcesException e) {
Slog.w(TAG, "Unable to allocate freeze surface", e);
}