| Index: ui/surface/transport_dib_win.cc
|
| diff --git a/ui/surface/transport_dib_win.cc b/ui/surface/transport_dib_win.cc
|
| index 190065b9ded3acff714154ce7456a7362b218fb6..83807e0d115abe822853013e8e4747e413475538 100644
|
| --- a/ui/surface/transport_dib_win.cc
|
| +++ b/ui/surface/transport_dib_win.cc
|
| @@ -68,8 +68,9 @@ SkCanvas* TransportDIB::GetPlatformCanvas(int w, int h,
|
| // Windows will fail to map the section if the dimensions of the canvas
|
| // are too large.
|
| SkCanvas* canvas = skia::CreatePlatformCanvas(
|
| - w, h, opaque, shared_memory_.handle().GetHandle(),
|
| - skia::RETURN_NULL_ON_FAILURE);
|
| + w, h, opaque, shared_memory_.handle().GetHandle(),
|
| + skia::RETURN_NULL_ON_FAILURE)
|
| + .release();
|
|
|
| // Calculate the size for the memory region backing the canvas.
|
| if (canvas)
|
|
|