Fix a few memory leaks in the input dispatcher.

Bug: 5862398
Change-Id: Iae3284a223b8307f541a7987f90f5b28e70b9244
2 files changed