Index: ui/gfx/path_win.cc |
diff --git a/ui/gfx/path_win.cc b/ui/gfx/path_win.cc |
index e6a915b3306968b8133475aa68d16a613d8a2545..72f5191ccdf0e5e92d64efdd9c5dfe6daa18fada 100644 |
--- a/ui/gfx/path_win.cc |
+++ b/ui/gfx/path_win.cc |
@@ -17,8 +17,9 @@ HRGN CreateHRGNFromSkRegion(const SkRegion& region) { |
for (SkRegion::Iterator i(region); !i.done(); i.next()) { |
const SkIRect& rect = i.rect(); |
- ::SetRectRgn(temp, rect.left(), rect.top(), rect.right(), rect.bottom()); |
- ::CombineRgn(result, result, temp, RGN_OR); |
+ ::SetRectRgn(temp.get(), |
+ rect.left(), rect.top(), rect.right(), rect.bottom()); |
+ ::CombineRgn(result.get(), result.get(), temp.get(), RGN_OR); |
} |
return result.release(); |