commit | 1291d0c2e4435561edcc260aa0b3337dbd583eda | [log] [tgz] |
---|---|---|
author | yukishiino <yukishiino@chromium.org> | Sat Sep 27 11:56:38 2014 |
committer | Commit bot <commit-bot@chromium.org> | Sat Sep 27 11:57:10 2014 |
tree | 53efb2f83a5131f338f9a9e6eb9947e649babb8c | |
parent | bd3ad7a6a3a94a532a3ee3e73f3c92c2f1b746e5 [diff] |
linux: Fixes a racy crash by key input at termination. It seems that it's possible that GDK events happen while we're going to unregister the GDK event handler, and the code must be thread-safe. (A gpointer |data| in the old code seems pointing to the deleted object.) This CL removes use of |data| pointer and makes the code thread-safe without adding any mutex. BUG=417210 Review URL: https://codereview.chromium.org/610523002 Cr-Commit-Position: refs/heads/master@{#297112}