diff options
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils/PhoneHelper.java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/PhoneHelper.java | 2 |
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 5becc7e79..879731591 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 { |