Index: src/fonts/SkGScalerContext.cpp |
diff --git a/src/fonts/SkGScalerContext.cpp b/src/fonts/SkGScalerContext.cpp |
index 5787478cecd24c298208a7099adda4368e978787..d2d0cacd0e1d25791fb2b28f7fa001101f2a1f27 100644 |
--- a/src/fonts/SkGScalerContext.cpp |
+++ b/src/fonts/SkGScalerContext.cpp |
@@ -63,9 +63,7 @@ SkGScalerContext::SkGScalerContext(SkGTypeface* face, const SkDescriptor* desc) |
fMatrix.preScale(SK_Scalar1 / STD_SIZE, SK_Scalar1 / STD_SIZE); |
} |
-SkGScalerContext::~SkGScalerContext() { |
- SkDELETE(fProxy); |
-} |
+SkGScalerContext::~SkGScalerContext() { delete fProxy; } |
unsigned SkGScalerContext::generateGlyphCount() { |
return fProxy->getGlyphCount(); |
@@ -168,7 +166,7 @@ SkGTypeface::~SkGTypeface() { |
SkScalerContext* SkGTypeface::onCreateScalerContext( |
const SkDescriptor* desc) const { |
- return SkNEW_ARGS(SkGScalerContext, (const_cast<SkGTypeface*>(this), desc)); |
+ return new SkGScalerContext(const_cast<SkGTypeface*>(this), desc); |
} |
void SkGTypeface::onFilterRec(SkScalerContextRec* rec) const { |