Bug 1247878 - close db when exiting ensureDatabaseIsNotLocked. r?mfinkle
MozReview-Commit-ID: GGJNpeKUaal
--- a/mobile/android/base/java/org/mozilla/gecko/db/DBUtils.java
+++ b/mobile/android/base/java/org/mozilla/gecko/db/DBUtils.java
@@ -108,16 +108,17 @@ public class DBUtils {
return;
}
// If we needed to retry, but we succeeded, report that in telemetry.
// Failures are indicated by a lower frequency of UNLOCKED than LOCKED.
if (attempt > 1) {
Telemetry.addToHistogram(HISTOGRAM_DATABASE_UNLOCKED, attempt - 1);
}
+ db.close();
}
/**
* Copies a table <b>between</b> database files.
*
* This method assumes that the source table and destination table already exist in the
* source and destination databases, respectively.
*