Fix a Cursor leak

When cursor is done, the cursor must be closed to avoid cursor leak.

AOSP Merge: https://android-review.googlesource.com/#/c/56982/2

Change-Id: I5f750a6bb499f86d4c76da40d171e9edfe6981d2
Fix a Cursor leak

When cursor is done, the cursor must be closed to avoid cursor leak.

AOSP Merge: https://android-review.googlesource.com/#/c/57100/2

Change-Id: I627cf2c8a64a220d6fd104505b852daca0928190