diff options
author | Ken Shirriff <kens@google.com> | 2010-03-11 15:26:18 -0800 |
---|---|---|
committer | Ken Shirriff <kens@google.com> | 2010-03-11 15:26:45 -0800 |
commit | dca5f191ace4bc52fbc6d4ed80a7e40ccb698422 (patch) | |
tree | 27f2ea035615ee2723869592a24bd692071c29da /packages | |
parent | 94d4b034adff90f681b0937bde8f7657b855929b (diff) | |
download | frameworks_base-dca5f191ace4bc52fbc6d4ed80a7e40ccb698422.zip frameworks_base-dca5f191ace4bc52fbc6d4ed80a7e40ccb698422.tar.gz frameworks_base-dca5f191ace4bc52fbc6d4ed80a7e40ccb698422.tar.bz2 |
Close db statement.
Fix finalizer error bug 2483608
Change-Id: I49c33dc68cd3f24772990a467790ecaa06e13a18
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java index ba66dc5..fb39ac0 100644 --- a/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java +++ b/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java @@ -902,6 +902,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { vibrate = AudioService.getValueForVibrateSetting(vibrate, AudioManager.VIBRATE_TYPE_RINGER, AudioManager.VIBRATE_SETTING_OFF); loadSetting(stmt, Settings.System.VIBRATE_ON, vibrate); + stmt.close(); } private void loadSettings(SQLiteDatabase db) { |