Merge pull request #2442 from ByteHamster/close-cursor
Close cursor before returning
This commit is contained in:
commit
0ac3706d4f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue