Index: Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp |
=================================================================== |
--- Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp (revision 88271) |
+++ Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp (working copy) |
@@ -750,7 +750,7 @@ |
SkDevice* device = factory->newDevice(m_canvas, SkBitmap::kARGB_8888_Config, drawingBuffer->size().width(), drawingBuffer->size().height(), false, false); |
// FIXME: This should use a smart pointer. |
m_canvas->setDevice(device)->unref(); |
- m_canvas->setDeviceFactory(factory); |
+ m_canvas->setDeviceFactory(factory)->unref(); |
} else |
m_accelerationMode = GPU; |
} else { |