Properly close Surface when done.

Surface.destroy was not being called. Leading to warning from
StrictMode.

Fixes bug 8388527.

Change-Id: I472fb57ed2c3f6389e53d8f020f3b22b2d0740c8
This commit is contained in:
Craig Mautner
2013-03-18 10:06:21 -07:00
parent cba45c0eef
commit e50d7fcd97

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