diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-06-12 12:50:31 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2016-06-12 20:09:03 +0200 |
commit | 4f4c5b7fd1adc4cbabf317190944d84730498db9 (patch) | |
tree | 75064150514a4e4f98da72bfb599fae47a189fed /src/main/java/eu/siacs | |
parent | 8b669b51b9aacd0da0047979247386319e6c4536 (diff) |
close db cursor after reading cert
Diffstat (limited to '')
-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 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; } |