Fix leaking a cursor

Change-Id: I1953ea995e83eb4f787f28b0fd510805e4ffc6eb
Automatic translation import

Change-Id: I910fbdc44f03b115fc5df2e4cef2291e3e1bdc0d
gitignore
Merge commit 'bb8c39f8a097833e52a016ec212921c24182898a' into cm-11.0