diff options
author | John Reck <jreck@android.com> | 2013-04-01 17:44:05 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-04-01 17:44:05 +0000 |
commit | ad53c7b21c120bdaa4012ae67500803a1b614f37 (patch) | |
tree | d02942a3429bd996033a2a54b3259ad1145008c9 | |
parent | 30ca089e04a091c4eea95d62185d120a61f0e0ba (diff) | |
parent | bb73be040ccaedc1ac5da830ed32eaa80b5bd119 (diff) | |
download | webkit-ad53c7b21c120bdaa4012ae67500803a1b614f37.tar.gz |
Merge "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 fcd9adee9..915970bec 100644 --- a/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextSkia.cpp +++ b/Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextSkia.cpp @@ -238,7 +238,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); |