summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/LayerAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/android/LayerAndroid.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/LayerAndroid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/LayerAndroid.cpp b/Source/WebCore/platform/graphics/android/LayerAndroid.cpp
index 00db27c..97ff692 100644
--- a/Source/WebCore/platform/graphics/android/LayerAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/LayerAndroid.cpp
@@ -164,6 +164,7 @@ LayerAndroid::~LayerAndroid()
{
if (m_texture)
m_texture->removeLayer(this);
+ SkSafeUnref(m_texture);
removeChildren();
delete m_extra;
delete m_contentsImage;
@@ -719,6 +720,7 @@ void LayerAndroid::assignTexture(LayerAndroid* oldTree)
if (oldLayer && oldLayer->texture()) {
oldLayer->texture()->replaceLayer(this);
m_texture = oldLayer->texture();
+ SkSafeRef(m_texture);
}
}