diff options
author | Nicolas Roard <nicolasroard@google.com> | 2012-05-23 13:24:35 -0700 |
---|---|---|
committer | Nicolas Roard <nicolasroard@google.com> | 2012-05-23 13:24:35 -0700 |
commit | 95b0a609fce7e73a37e01a6ad385b79fc959a529 (patch) | |
tree | e666f6fa03ad5b1e8877ca43c971638886dbc82b /Source/WebCore/platform/graphics | |
parent | 56ec1c56c865189726480f3c481056a48a0ad61f (diff) | |
download | external_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')
-rw-r--r-- | Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp | 2 |
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; |