fix some frameworks cursor leaks

Change-Id: Ib2c3b8944e12d7b198230f26f6104269f7d8fe0a