diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-12 12:50:31 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-06-12 12:50:31 +0200 |
commit | 74d376be6850e2c78fe53c988d550c29bf41329a (patch) | |
tree | 90948087c853fa2f011f9a66f07cb375e3ae6905 | |
parent | 5017e8564c7d0a215cfa8e9983851efd2b2994f3 (diff) |
close db cursor after reading cert
-rw-r--r-- | src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java index f1155b07..9e108545 100644 --- a/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java +++ b/src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java @@ -1135,6 +1135,7 @@ public class DatabaseBackend extends SQLiteOpenHelper { } else { cursor.moveToFirst(); byte[] certificate = cursor.getBlob(cursor.getColumnIndex(SQLiteAxolotlStore.CERTIFICATE)); + cursor.close(); if (certificate == null || certificate.length == 0) { return null; } |