Index: src/core/SkMultiPictureDraw.cpp |
diff --git a/src/core/SkMultiPictureDraw.cpp b/src/core/SkMultiPictureDraw.cpp |
index 286d3b648952a27cd2d65a9ee2d85cc5a9af5829..8cbb9ca60f5faf3964ada2d0a032590dd16210a7 100644 |
--- a/src/core/SkMultiPictureDraw.cpp |
+++ b/src/core/SkMultiPictureDraw.cpp |
@@ -35,7 +35,7 @@ void SkMultiPictureDraw::DrawData::init(SkCanvas* canvas, const SkPicture* pictu |
fMatrix.setIdentity(); |
} |
if (paint) { |
- fPaint = SkNEW_ARGS(SkPaint, (*paint)); |
+ fPaint = new SkPaint(*paint); |
} else { |
fPaint = NULL; |
} |
@@ -45,7 +45,7 @@ void SkMultiPictureDraw::DrawData::Reset(SkTDArray<DrawData>& data) { |
for (int i = 0; i < data.count(); ++i) { |
data[i].fPicture->unref(); |
data[i].fCanvas->unref(); |
- SkDELETE(data[i].fPaint); |
+ delete data[i].fPaint; |
} |
data.rewind(); |
} |