summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Reck <jreck@android.com>2013-04-01 17:44:05 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-04-01 17:44:05 +0000
commitad53c7b21c120bdaa4012ae67500803a1b614f37 (patch)
treed02942a3429bd996033a2a54b3259ad1145008c9
parent30ca089e04a091c4eea95d62185d120a61f0e0ba (diff)
parentbb73be040ccaedc1ac5da830ed32eaa80b5bd119 (diff)
downloadwebkit-ad53c7b21c120bdaa4012ae67500803a1b614f37.tar.gz
Merge "Fix memory leak when creating SkBitmapProcShader"
-rw-r--r--Source/WebCore/platform/graphics/android/context/PlatformGraphicsContextSkia.cpp2
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);