aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-12 12:50:31 +0200
committerDaniel Gultsch <daniel@gultsch.de>2016-06-12 12:50:31 +0200
commit74d376be6850e2c78fe53c988d550c29bf41329a (patch)
tree90948087c853fa2f011f9a66f07cb375e3ae6905
parent5017e8564c7d0a215cfa8e9983851efd2b2994f3 (diff)
close db cursor after reading cert
-rw-r--r--src/main/java/eu/siacs/conversations/persistance/DatabaseBackend.java1
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;
}