Index: src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm |
diff --git a/src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm b/src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm |
index 08e6f239eed1c25546bfb022df59a7208b66cf16..b90948af442167944f223a6ef748dc8ed28c952e 100644 |
--- a/src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm |
+++ b/src/gpu/gl/iOS/SkCreatePlatformGLContext_iOS.mm |
@@ -93,11 +93,10 @@ SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI) { |
if (kGL_GrGLStandard == forcedGpuAPI) { |
return NULL; |
} |
- IOSGLContext* ctx = SkNEW(IOSGLContext); |
+ IOSGLContext* ctx = new IOSGLContext; |
if (!ctx->isValid()) { |
- SkDELETE(ctx); |
+ delete ctx; |
return NULL; |
} |
return ctx; |
} |
- |