Index: src/c/sk_surface.cpp |
diff --git a/src/c/sk_surface.cpp b/src/c/sk_surface.cpp |
index ccab9dfa1ac66f2afcaaed40c13726884e9abd38..722ca46a2f92f31f8db82bf7cba0fbc26d94629c 100644 |
--- a/src/c/sk_surface.cpp |
+++ b/src/c/sk_surface.cpp |
@@ -258,13 +258,9 @@ uint32_t sk_image_get_unique_id(const sk_image_t* cimage) { |
/////////////////////////////////////////////////////////////////////////////////////////// |
-sk_path_t* sk_path_new() { |
- return (sk_path_t*)SkNEW(SkPath); |
-} |
+sk_path_t* sk_path_new() { return (sk_path_t*)new SkPath; } |
-void sk_path_delete(sk_path_t* cpath) { |
- SkDELETE(as_path(cpath)); |
-} |
+void sk_path_delete(sk_path_t* cpath) { delete as_path(cpath); } |
void sk_path_move_to(sk_path_t* cpath, float x, float y) { |
as_path(cpath)->moveTo(x, y); |