aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-06-12 12:50:31 +0200
committerChristian Schneppe <christian@pix-art.de>2016-06-12 20:09:03 +0200
commit4f4c5b7fd1adc4cbabf317190944d84730498db9 (patch)
tree75064150514a4e4f98da72bfb599fae47a189fed /src/main/java
parent8b669b51b9aacd0da0047979247386319e6c4536 (diff)
close db cursor after reading cert
Diffstat (limited to 'src/main/java')
-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 f4e138cbe..2c1449122 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;
}