commit | 06d46fda66f7e6cc144a195ac6dc065bca2e3616 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Wed Apr 19 18:45:30 2017 -0700 |
committer | Yifan Hong <elsk@google.com> | Wed Apr 19 19:00:45 2017 -0700 |
tree | 1c6588ed6a76d908ddd080f1ae05ee1923accaef | |
parent | 511544f212a9e675c10928b29551746374fb1637 [diff] |
Fix reference loop in IEventQueue implementation. EventQueue's destructor is never called because EventQueueLooperCallback has a strong reference to it, and EventQueueLooperCallback is never destroyed because the file descriptor is never removed from the looper. Bug: 37280081 Test: camera works Test: event queue is destroyed when client removes its reference (from logcat) Change-Id: I12347b6d1cca354288382555d2d9a20acfa59233