commit | 35a114c8ea98bc01fa1c3b6e8610b6f99717a888 | [log] [tgz] |
---|---|---|
author | Peiyong Lin <lpy@google.com> | Thu Apr 25 14:37:13 2019 -0700 |
committer | Peiyong Lin <lpy@google.com> | Thu Apr 25 16:04:37 2019 -0700 |
tree | b7f54abf182559a9b62a8a2177e6e9d24f22b163 | |
parent | 15800858fa2b9c27274f93a7fc80b73d20d72502 [diff] |
[RenderEngine] Release the fence before calling eglCreateSyncKHR. Previously we released the fence after calling eglCreateSyncKHR, however if eglCreateSyncKHR fails, then we will return, which results in double free of the fd. This patch makes sure we release fd before we transfer the ownership to EGLSync. BUG: 131290710 Test: Boot Change-Id: I4d8cb7968ceceac5b910d4cb43e94b330319071f