OSDN Git Service

audioflinger: prevent crash in MmapThreadHandle destructor
authorPhil Burk <philburk@google.com>
Thu, 3 Aug 2017 19:02:00 +0000 (12:02 -0700)
committerPhil Burk <philburk@google.com>
Thu, 3 Aug 2017 22:27:38 +0000 (15:27 -0700)
commit9fabbf8a8ae755c3c07637f8ca7677c63a1607bb
tree9f3be1ca67e5ea192cdd9b2c289c9ebe6095218d
parent909f4a6cada3d5fb7594da7d1809ba62d1b47340
audioflinger: prevent crash in MmapThreadHandle destructor

The mThread smart pointer was getting cleared while the
thread was still in use.

Bug: 64316921
Test: use input_monitor.cpp, see bug for repro steps
Change-Id: I46095b4e67648208a2fb979696fc2d655432448b
services/audioflinger/AudioFlinger.h
services/audioflinger/Threads.cpp