aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2011-10-27 09:26:32 +0200
committerSamuel Tardieu <sam@rfc1149.net>2011-10-28 12:16:59 +0200
commitaf8dc68a2e28ce11a01f603567c6fe749f28740e (patch)
treeb18e35f51be514badb372c64a14e130b4bdc2c33
parent9c9692375596186ed3f399e3ba9a46be4781bf13 (diff)
downloadcgeo-af8dc68a2e28ce11a01f603567c6fe749f28740e.zip
cgeo-af8dc68a2e28ce11a01f603567c6fe749f28740e.tar.gz
cgeo-af8dc68a2e28ce11a01f603567c6fe749f28740e.tar.bz2
Mark statements as destroyed when they are
-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 e4796e2..e8c7c6c 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;
}
}