Index: src/codec/SkJpegCodec.cpp |
diff --git a/src/codec/SkJpegCodec.cpp b/src/codec/SkJpegCodec.cpp |
index c865fbccd1a1bd9dae8de251e73f5f0274ae07ce..ac57799fb59de3334743115ba107ed3a1c3552b3 100644 |
--- a/src/codec/SkJpegCodec.cpp |
+++ b/src/codec/SkJpegCodec.cpp |
@@ -633,8 +633,7 @@ void SkJpegCodec::initializeSwizzler(const SkImageInfo& dstInfo, const Options& |
void SkJpegCodec::initializeColorXform(const SkImageInfo& dstInfo) { |
if (needs_color_xform(dstInfo, this->getInfo())) { |
- fColorXform = SkColorSpaceXform::New(sk_ref_sp(this->getInfo().colorSpace()), |
- sk_ref_sp(dstInfo.colorSpace())); |
+ fColorXform = SkColorSpaceXform::New(this->getInfo().colorSpace(), dstInfo.colorSpace()); |
SkASSERT(fColorXform); |
} |
} |