summaryrefslogtreecommitdiffstats
path: root/WebCore
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2010-10-19 10:56:10 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-10-19 10:56:10 -0700
commit2f97e3f816a2d372a9dbcdde4207990938fbfbd8 (patch)
treefa0b4f2922eec72cf0f11dcc2c1a2a1c7c5a819c /WebCore
parent443003a60e3ef626b9600b66c6212d8843151841 (diff)
parentf0de54d27693cb9b5dd671641f5b6f0adfda5372 (diff)
downloadexternal_webkit-2f97e3f816a2d372a9dbcdde4207990938fbfbd8.zip
external_webkit-2f97e3f816a2d372a9dbcdde4207990938fbfbd8.tar.gz
external_webkit-2f97e3f816a2d372a9dbcdde4207990938fbfbd8.tar.bz2
Merge "Fix crash in hardware accelerated webviews."
Diffstat (limited to 'WebCore')
-rw-r--r--WebCore/platform/graphics/android/TiledPage.cpp4
-rw-r--r--WebCore/platform/graphics/android/TiledPage.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/platform/graphics/android/TiledPage.cpp b/WebCore/platform/graphics/android/TiledPage.cpp
index f42105e..7bdea98 100644
--- a/WebCore/platform/graphics/android/TiledPage.cpp
+++ b/WebCore/platform/graphics/android/TiledPage.cpp
@@ -59,6 +59,10 @@ TiledPage::TiledPage(int id, GLWebViewState* state)
{
}
+TiledPage::~TiledPage() {
+ deleteAllValues(m_baseTiles);
+}
+
BaseTile* TiledPage::getBaseTile(int x, int y)
{
// if (x,y) is (0,0) the HashMap will treat the key as a null value and will
diff --git a/WebCore/platform/graphics/android/TiledPage.h b/WebCore/platform/graphics/android/TiledPage.h
index 917ba4b..94306bf 100644
--- a/WebCore/platform/graphics/android/TiledPage.h
+++ b/WebCore/platform/graphics/android/TiledPage.h
@@ -52,6 +52,7 @@ typedef HashMap<TileKey, BaseTile*> TileMap;
class TiledPage {
public:
TiledPage(int id, GLWebViewState* state);
+ ~TiledPage();
// returns the other TiledPage who shares the same GLWebViewState
TiledPage* sibling();