Index: src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp |
diff --git a/src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp b/src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp |
index 8a4c5db5b326f661a3446e028fdfdad0f690c074..0517f73ee40ee69be6dc10425890e1e2d6916808 100644 |
--- a/src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp |
+++ b/src/gpu/gl/win/SkCreatePlatformGLContext_win.cpp |
@@ -188,9 +188,9 @@ GrGLFuncPtr WinGLContext::onPlatformGetProcAddress(const char* name) const { |
} // anonymous namespace |
SkGLContext* SkCreatePlatformGLContext(GrGLStandard forcedGpuAPI) { |
- WinGLContext* ctx = SkNEW_ARGS(WinGLContext, (forcedGpuAPI)); |
+ WinGLContext* ctx = new WinGLContext(forcedGpuAPI); |
if (!ctx->isValid()) { |
- SkDELETE(ctx); |
+ delete ctx; |
return NULL; |
} |
return ctx; |