aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-10-27 09:26:32 +0200
committerSamuel Tardieu <sam@rfc1149.net>2011-10-27 09:26:32 +0200
commit6c8840ed1165a0a0855b26f75bc63c5d7161855a (patch)
tree3a602e1fd4d62e4aacb4b52c36c3e2e58ca04048 /main
parent0e645cf3b74144de8d10f7bc8eaa5e76530e1857 (diff)
downloadcgeo-6c8840ed1165a0a0855b26f75bc63c5d7161855a.zip
cgeo-6c8840ed1165a0a0855b26f75bc63c5d7161855a.tar.gz
cgeo-6c8840ed1165a0a0855b26f75bc63c5d7161855a.tar.bz2
Mark statements as destroyed when they are
Diffstat (limited to 'main')
-rw-r--r--main/src/cgeo/geocaching/cgData.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/cgData.java b/main/src/cgeo/geocaching/cgData.java
index 82c8340..9d7d5ce 100644
--- a/main/src/cgeo/geocaching/cgData.java
+++ b/main/src/cgeo/geocaching/cgData.java
@@ -316,9 +316,11 @@ public class cgData {
private void closePreparedStatements() {
if (statementDescription != null) {
statementDescription.close();
+ statementDescription = null;
}
if (statementLogCount != null) {
statementLogCount.close();
+ statementLogCount = null;
}
}