Chromium Code Reviews
Descriptionexo: Fix crash in out-of-order destruction of Gamepad
Destroying the gaming input resource will destroy the gamepad
polling thread, which causes the Gamepad destructor to access an
invalid reference to the task runner of that thread.
This CL changes the raw pointer to a ref counted pointer so we won't
destroy the task runner prematurely.
BUG=620977
Committed: https://crrev.com/a3633143505b30713e83baabfa7767877bf79788
Cr-Commit-Position: refs/heads/master@{#406327}
Patch Set 1 #
Total comments: 2
Patch Set 2 : only use refptr for storing the task runner #Messages
Total messages: 11 (3 generated)
|