diff options
author | John Reck <jreck@android.com> | 2013-04-01 11:25:36 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-04-01 11:25:36 -0700 |
commit | 924732efa0f6ccf2b486d8933026fb7264d279e4 (patch) | |
tree | 5b2a72d6c49c302c99a7c42aea03037b1216a3c7 | |
parent | d307f7f0361f3102cb4d3dade523484cb1463e5a (diff) | |
parent | ad53c7b21c120bdaa4012ae67500803a1b614f37 (diff) | |
download | webkit-924732efa0f6ccf2b486d8933026fb7264d279e4.tar.gz |
am ad53c7b2: Merge "Fix memory leak when creating SkBitmapProcShader"
* commit 'ad53c7b21c120bdaa4012ae67500803a1b614f37':
Fix memory leak when creating SkBitmapProcShader
-rw-r--r-- | Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextSkia.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextSkia.cpp b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextSkia.cpp index cd3ef7da1..b9fc2f5cb 100644 --- a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextSkia.cpp +++ b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextSkia.cpp @@ -239,7 +239,7 @@ void PlatformGraphicsContextSkia::drawBitmapPattern( SkPaint paint; setupPaintCommon(&paint); paint.setAlpha(getNormalizedAlpha()); - paint.setShader(shader); + paint.setShader(shader)->unref(); paint.setXfermodeMode(WebCoreCompositeToSkiaComposite(compositeOp)); fixPaintForBitmapsThatMaySeam(&paint); mCanvas->drawRect(destRect, paint); |