Make sure to release surface

Otherwise CloseGuard will complain in the finalizer.

Bug: 31339431
Change-Id: I179d1093e4a08d062ce971cf8e5e0fca02156fca
This commit is contained in:
Jorim Jaggi
2017-01-18 02:17:37 +01:00
parent fb9d78afb7
commit 2f24b65075

View File

@@ -35,7 +35,6 @@ import android.os.Handler;
import android.os.Message;
import android.os.RemoteException;
import android.util.Slog;
import android.view.Display;
import android.view.IWindowSession;
import android.view.Surface;
import android.view.View;
@@ -147,6 +146,7 @@ class TaskSnapshotSurface implements StartingSurface {
if (reportNextDraw) {
reportDrawn();
}
mSurface.release();
}
private void reportDrawn() {