From 95b0a609fce7e73a37e01a6ad385b79fc959a529 Mon Sep 17 00:00:00 2001 From: Nicolas Roard Date: Wed, 23 May 2012 13:24:35 -0700 Subject: Fix crash bug:6537803 Change-Id: Ie0bb6e64644fd82c0ed6cf92c592c434f67fdc0d --- Source/WebCore/platform/graphics/android/layers/LayerAndroid.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/WebCore/platform') 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; -- cgit v1.1