From 9573f7457e0c134f50744680ca27c4f26fece87e Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Wed, 16 May 2018 21:19:51 +0300 Subject: [PATCH] Close cursor at getAllHistoryMap --- .../net/osmand/plus/wikivoyage/data/TravelLocalDataHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelLocalDataHelper.java b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelLocalDataHelper.java index cdba65ad8f..eefa4c44a2 100644 --- a/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelLocalDataHelper.java +++ b/OsmAnd/src/net/osmand/plus/wikivoyage/data/TravelLocalDataHelper.java @@ -286,6 +286,7 @@ public class TravelLocalDataHelper { res.put(item.cityId, item); } while (cursor.moveToNext()); } + cursor.close(); } finally { conn.close(); }