Index: src/images/SkImageDecoder_ktx.cpp |
diff --git a/src/images/SkImageDecoder_ktx.cpp b/src/images/SkImageDecoder_ktx.cpp |
index 837fe58862deb92600f589a4f13478e7077d8e61..a7e1a70e601217c7e70c5eab15965202f6653cb0 100644 |
--- a/src/images/SkImageDecoder_ktx.cpp |
+++ b/src/images/SkImageDecoder_ktx.cpp |
@@ -309,7 +309,7 @@ DEFINE_ENCODER_CREATOR(KTXImageEncoder); |
static SkImageDecoder* sk_libktx_dfactory(SkStreamRewindable* stream) { |
if (SkKTXFile::is_ktx(stream)) { |
- return SkNEW(SkKTXImageDecoder); |
+ return new SkKTXImageDecoder; |
} |
return NULL; |
} |
@@ -322,7 +322,7 @@ static SkImageDecoder::Format get_format_ktx(SkStreamRewindable* stream) { |
} |
SkImageEncoder* sk_libktx_efactory(SkImageEncoder::Type t) { |
- return (SkImageEncoder::kKTX_Type == t) ? SkNEW(SkKTXImageEncoder) : NULL; |
+ return (SkImageEncoder::kKTX_Type == t) ? new SkKTXImageEncoder : NULL; |
} |
static SkImageDecoder_DecodeReg gReg(sk_libktx_dfactory); |