diff options
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java index 4bec03d7e..a2ecd0a52 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java @@ -905,6 +905,7 @@ public final class DBReader { Cursor cursor = adapter.getImageCursor(ids); int imageCount = cursor.getCount(); if (imageCount == 0) { + cursor.close(); return Collections.emptyMap(); } Map<Long, FeedImage> result = new ArrayMap<>(imageCount); |