summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-07-11 17:49:46 +0100
committerKristian Monsen <kristianm@google.com>2011-07-26 21:23:24 +0100
commit2b00b825565a166e9969df25597c1df75ee28dac (patch)
tree95896441debd64d200080f9946e9a662f12dba61 /src/com/android/browser
parentc994b5d66cc0c5f0b52f52caa49c51d7fec9b186 (diff)
downloadpackages_apps_Browser-2b00b825565a166e9969df25597c1df75ee28dac.zip
packages_apps_Browser-2b00b825565a166e9969df25597c1df75ee28dac.tar.gz
packages_apps_Browser-2b00b825565a166e9969df25597c1df75ee28dac.tar.bz2
Releasing a SQLite cursor.
Fix for bug 5080615 StrictMode violation AccountsChangedReceiver - Cursor not closed Not releasing the cursor is a strict mode violation, see http://strictdroid.prom.corp.google.com/v/16e91826934896b11d2763d0dce226adf9cf5866 Change-Id: I53eaa2d7e2b3328dd69869e6e9fc24babc68aa48
Diffstat (limited to 'src/com/android/browser')
-rw-r--r--src/com/android/browser/AccountsChangedReceiver.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/com/android/browser/AccountsChangedReceiver.java b/src/com/android/browser/AccountsChangedReceiver.java
index e5397a2..cad176f 100644
--- a/src/com/android/browser/AccountsChangedReceiver.java
+++ b/src/com/android/browser/AccountsChangedReceiver.java
@@ -63,6 +63,7 @@ public class AccountsChangedReceiver extends BroadcastReceiver {
}
}
cr.update(Accounts.CONTENT_URI, null, null, null);
+ c.close();
}
void delete(ContentResolver cr, String name, String type) {