Permalink
Browse files

Close Cursors after use (#863)

  • Loading branch information...
cbalster authored and spyhunter99 committed Jan 11, 2018
1 parent 5160bfe commit e3bf797e61468d0677ebf4bb0f2fb07459d0668a
@@ -52,8 +52,10 @@ public Object getItem(int id) {
final long expires = select.getLong(select.getColumnIndex(SqlTileWriter.COLUMN_EXPIRES));
tile.setExpires(new Date(expires));
}
select.close();
return tile;
}
select.close();
return null;
}
@@ -48,6 +48,7 @@ public Cursor select(int rows, int offset) {
c.rowCount = getRowCount(prov);
ret.add(c);
}
cur.close();
}
return ret;

0 comments on commit e3bf797

Please sign in to comment.