Patch to fix double tap and memory leaks.

As posted to address issue 206 here:
https://code.google.com/p/touchegg/issues/detail?id=206