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

Commit 11f2e08a authored by Jesse Hall's avatar Jesse Hall Committed by Android Git Automerger
Browse files

am 8ad8c0a7: am afe2b1fa: surfaceflinger: don\'t close fence fds after passing to queueBuffer

* commit '8ad8c0a7':
  surfaceflinger: don't close fence fds after passing to queueBuffer
parents 15b2ecf5 8ad8c0a7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -3251,10 +3251,8 @@ status_t SurfaceFlinger::captureScreenImplLocked(
                } else {
                    result = BAD_VALUE;
                }
                // queueBuffer takes ownership of syncFd
                window->queueBuffer(window, buffer, syncFd);
                if (syncFd != -1) {
                    close(syncFd);
                }
            }
        } else {
            result = BAD_VALUE;