aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs/conversations
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-12-03 23:29:35 +0100
committeriNPUTmice <daniel@gultsch.de>2014-12-03 23:29:35 +0100
commit2274c387265a410f3ce4f2da1703cf93cdfdbcd7 (patch)
tree0af581b3beae381b7d86ca513d49327d3e5772a9 /src/main/java/eu/siacs/conversations
parente623e284874f5c53e8f6a588853a8cabaf206e20 (diff)
close cursors after querying phone db
Diffstat (limited to 'src/main/java/eu/siacs/conversations')
-rw-r--r--src/main/java/eu/siacs/conversations/utils/PhoneHelper.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java b/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java
index 5becc7e7..87973159 100644
--- a/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java
+++ b/src/main/java/eu/siacs/conversations/utils/PhoneHelper.java
@@ -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 {