diff options
Diffstat (limited to 'src/com/android/browser/DownloadTouchIcon.java')
-rw-r--r-- | src/com/android/browser/DownloadTouchIcon.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/browser/DownloadTouchIcon.java b/src/com/android/browser/DownloadTouchIcon.java index e2d4594..c8701ba 100644 --- a/src/com/android/browser/DownloadTouchIcon.java +++ b/src/com/android/browser/DownloadTouchIcon.java @@ -96,6 +96,9 @@ class DownloadTouchIcon extends AsyncTask<String, Void, Void> { } finally { client.close(); } + if (mCursor != null) { + mCursor.close(); + } return null; } @@ -130,6 +133,5 @@ class DownloadTouchIcon extends AsyncTask<String, Void, Void> { values, null, null); } while (mCursor.moveToNext()); } - mCursor.close(); } } |