Skip to content

Commit

Permalink
Close Cursors after use (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbalster authored and spyhunter99 committed Jan 11, 2018
1 parent 5160bfe commit e3bf797
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ public Object getItem(int id) {
final long expires = select.getLong(select.getColumnIndex(SqlTileWriter.COLUMN_EXPIRES)); final long expires = select.getLong(select.getColumnIndex(SqlTileWriter.COLUMN_EXPIRES));
tile.setExpires(new Date(expires)); tile.setExpires(new Date(expires));
} }
select.close();
return tile; return tile;
} }
select.close();
return null; return null;
} }


Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public List<SourceCount> getSources() {
c.rowCount = getRowCount(prov); c.rowCount = getRowCount(prov);
ret.add(c); ret.add(c);
} }
cur.close();
} }
return ret; return ret;


Expand Down

0 comments on commit e3bf797

Please sign in to comment.