From 4433d0333f18ea1e5c5c531db48908665c6f8446 Mon Sep 17 00:00:00 2001 From: Derek Sollenberger Date: Wed, 10 Jun 2009 15:37:21 -0400 Subject: [PATCH] Call the WebViewCore's freeMemory instead of just clearCache --- src/com/android/browser/TabControl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/browser/TabControl.java b/src/com/android/browser/TabControl.java index d880d40..f66df69 100644 --- a/src/com/android/browser/TabControl.java +++ b/src/com/android/browser/TabControl.java @@ -684,11 +684,11 @@ class TabControl { return; } - // free the WebView cache - Log.w(LOGTAG, "Free WebView cache"); + // free the WebView's unused memory (this includes the cache) + Log.w(LOGTAG, "Free WebView's unused memory and cache"); WebView view = getCurrentWebView(); if (view != null) { - view.clearCache(false); + view.freeMemory(); } // force a gc System.gc(); -- 2.11.0