Index: src/core/SkColorSpace.cpp |
diff --git a/src/core/SkColorSpace.cpp b/src/core/SkColorSpace.cpp |
index 172082b781e9b69fb5b3f984a16497a0c3436ae0..28b3e8b15779fe4df918a11848417d8e5cbe15cf 100644 |
--- a/src/core/SkColorSpace.cpp |
+++ b/src/core/SkColorSpace.cpp |
@@ -95,7 +95,7 @@ sk_sp<SkColorSpace> SkColorSpace::NewRGB(float gammaVals[3], const SkMatrix44& t |
} |
if (!gammas) { |
- gammas = sk_ref_sp(new SkGammas(gammaVals[0], gammaVals[1], gammaVals[2])); |
+ gammas = sk_sp<SkGammas>(new SkGammas(gammaVals[0], gammaVals[1], gammaVals[2])); |
} |
return sk_sp<SkColorSpace>(new SkColorSpace(gammas, toXYZD50, kUnknown_Named)); |
} |