Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f24b650 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Make sure to release surface

Otherwise CloseGuard will complain in the finalizer.

Bug: 31339431
Change-Id: I179d1093e4a08d062ce971cf8e5e0fca02156fca
parent fb9d78af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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() {