commit | c683dfeccb10aeee7abc9b1e496bd88581a1860c | [log] [tgz] |
---|---|---|
author | Steven Thomas <steventhomas@google.com> | Wed Apr 11 18:55:37 2018 -0700 |
committer | Steven Thomas <steventhomas@google.com> | Wed Apr 11 18:55:37 2018 -0700 |
tree | 6cd0f80dfb3f874fc81261a9e3e1234043b964eb | |
parent | 409a80198b0603816abb553f349028cbd9fdcee8 [diff] |
Fix vr_hwc crash when re-entering vr An enter, exit, enter vr sequence would result in a crash in vr_hwc because we weren't clearing the event callback pointer in unregisterEventCallback() during the exit vr step. When we would enter the second time we'd try to call onRefresh() on the stale pointer, resulting in a crash. Bug: 77498352 Test: Enter, exit, enter vr, confirmed no crash. Change-Id: If93aaf9935844565cb99bbf7349573a8ddfff4ca