summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp
diff options
context:
space:
mode:
authorNicolas Roard <nicolasroard@google.com>2012-05-23 13:24:35 -0700
committerNicolas Roard <nicolasroard@google.com>2012-05-23 13:24:35 -0700
commit95b0a609fce7e73a37e01a6ad385b79fc959a529 (patch)
treee666f6fa03ad5b1e8877ca43c971638886dbc82b /Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp
parent56ec1c56c865189726480f3c481056a48a0ad61f (diff)
downloadexternal_webkit-95b0a609fce7e73a37e01a6ad385b79fc959a529.zip
external_webkit-95b0a609fce7e73a37e01a6ad385b79fc959a529.tar.gz
external_webkit-95b0a609fce7e73a37e01a6ad385b79fc959a529.tar.bz2
Fix crash
bug:6537803 Change-Id: Ie0bb6e64644fd82c0ed6cf92c592c434f67fdc0d
Diffstat (limited to 'Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp')
-rw-r--r--Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp b/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp
index 182e811..b60b791 100644
--- a/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp
+++ b/Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp
@@ -330,6 +330,8 @@ void LayerAndroid::removeAnimationsForKeyframes(const String& name)
// FIXME: use a real mask?
void LayerAndroid::setMaskLayer(LayerAndroid* layer)
{
+ SkSafeRef(layer);
+ SkSafeUnref(m_maskLayer);
m_maskLayer = layer;
if (layer)
m_haveClip = true;