Fix a few memory leaks in the input dispatcher.  (DO NOT MERGE)

Bug: 5862398
Change-Id: I799ee47b6e5d6c51f45aa4296c6ab8a610b74be5
2 files changed