aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/eu/siacs')
-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 {