Index: src/ports/SkImageDecoder_CG.cpp |
diff --git a/src/ports/SkImageDecoder_CG.cpp b/src/ports/SkImageDecoder_CG.cpp |
index ba16e4b45c0e53f8e952a5713ae497d0d22b5d4f..e1e6dc17e7aaa032a87319217072cac8122f6983 100644 |
--- a/src/ports/SkImageDecoder_CG.cpp |
+++ b/src/ports/SkImageDecoder_CG.cpp |
@@ -221,7 +221,7 @@ SkImageDecoder* SkImageDecoder::Factory(SkStreamRewindable* stream) { |
SkImageDecoder* decoder = image_decoder_from_stream(stream); |
if (NULL == decoder) { |
// If no image decoder specific to the stream exists, use SkImageDecoder_CG. |
- return SkNEW(SkImageDecoder_CG); |
+ return new SkImageDecoder_CG; |
} else { |
return decoder; |
} |
@@ -344,7 +344,7 @@ static SkImageEncoder* sk_imageencoder_cg_factory(SkImageEncoder::Type t) { |
default: |
return NULL; |
} |
- return SkNEW_ARGS(SkImageEncoder_CG, (t)); |
+ return new SkImageEncoder_CG(t); |
} |
static SkImageEncoder_EncodeReg gEReg(sk_imageencoder_cg_factory); |