summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/graphics/android/PathAndroid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/graphics/android/PathAndroid.cpp')
-rw-r--r--WebCore/platform/graphics/android/PathAndroid.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/platform/graphics/android/PathAndroid.cpp b/WebCore/platform/graphics/android/PathAndroid.cpp
index c1fe8a8..f7f6b19 100644
--- a/WebCore/platform/graphics/android/PathAndroid.cpp
+++ b/WebCore/platform/graphics/android/PathAndroid.cpp
@@ -353,7 +353,7 @@ static GraphicsContext* scratchContext()
static ImageBuffer* scratch = 0;
// TODO(benm): Confirm with reed that it's correct to use the (default) DeviceRGB ColorSpace parameter in the call to create below.
if (!scratch)
- scratch = ImageBuffer::create(IntSize(1, 1)).release();
+ scratch = ImageBuffer::create(IntSize(1, 1)).leakPtr();
// We don't bother checking for failure creating the ImageBuffer, since our
// ImageBuffer initializer won't fail.
return scratch->context();