close cursors after querying phone db

This commit is contained in:
iNPUTmice 2014-12-03 23:29:35 +01:00
parent e623e28487
commit 2274c38726

View file

@ -64,6 +64,7 @@ public class PhoneHelper {
if (listener != null) {
listener.onPhoneContactsLoaded(phoneContacts);
}
cursor.close();
}
});
try {
@ -85,6 +86,7 @@ public class PhoneHelper {
} else {
mProfileCursor.moveToFirst();
String uri = mProfileCursor.getString(1);
mProfileCursor.close();
if (uri == null) {
return null;
} else {