am 2fc8ad1f: Merge "Properly close Surface when done." into jb-mr2-dev

* commit '2fc8ad1fe68cc819a337e1c48dc27389a823c304':
  Properly close Surface when done.
This commit is contained in:
Craig Mautner
2013-03-18 21:12:06 +00:00
committed by Android Git Automerger

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);
}