commit | 95e3548ed91c17f0d3b4d27eac6a8e57338caec3 | [log] [tgz] |
---|---|---|
author | Patrick Scott <phanna@android.com> | Fri Oct 22 06:49:47 2010 -0700 |
committer | Android Code Review <code-review@android.com> | Fri Oct 22 06:49:47 2010 -0700 |
tree | 50ad2562dfaf4c5c259c347be7d87862c300a045 | |
parent | 6d25c81ef7ddfc6cbc36094388b2de987dd77dae [diff] | |
parent | 371822613e22cd748a6f6b9a0abd0c167e74b77f [diff] |
Merge "Close cursor to avoid excessive JNI references"
diff --git a/src/com/android/browser/BrowserActivity.java b/src/com/android/browser/BrowserActivity.java index 29e333a..dda7820 100644 --- a/src/com/android/browser/BrowserActivity.java +++ b/src/com/android/browser/BrowserActivity.java
@@ -2248,6 +2248,10 @@ getString( R.string.choosertitle_sharevia)); } + // close the cursor after its used + if (c != null) { + c.close(); + } break; case R.id.copy_link_context_menu_id: copy(url);