remove keyboard notifications from NSNotificationCenter
invalidate NSTimer instance in destroy to prevent memory leak
Merge pull request #6918 from minggo/fix-object-leak

Fix NSNotificationCenter and NSTimer leaks