Index: src/c/sk_paint.cpp |
diff --git a/src/c/sk_paint.cpp b/src/c/sk_paint.cpp |
index 330c796d7e21e4662700ddcdfa8a9c24c7542470..dcf26834aa5f04f774dc8411a0e384f998b9b204 100644 |
--- a/src/c/sk_paint.cpp |
+++ b/src/c/sk_paint.cpp |
@@ -42,13 +42,9 @@ const struct { |
////////////////////////////////////////////////////////////////////////////////////////////////// |
-sk_paint_t* sk_paint_new() { |
- return (sk_paint_t*)SkNEW(SkPaint); |
-} |
+sk_paint_t* sk_paint_new() { return (sk_paint_t*)new SkPaint; } |
-void sk_paint_delete(sk_paint_t* cpaint) { |
- SkDELETE(AsPaint(cpaint)); |
-} |
+void sk_paint_delete(sk_paint_t* cpaint) { delete AsPaint(cpaint); } |
bool sk_paint_is_antialias(const sk_paint_t* cpaint) { |
return AsPaint(*cpaint).isAntiAlias(); |