| Index: third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| index 9f84122508d48414380954d9cb2a0fe8bd15a8b8..b3bd7d93278ee227f858d7c18dbbf28eacff334c 100644
|
| --- a/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| +++ b/third_party/WebKit/Source/platform/image-decoders/ImageDecoder.cpp
|
| @@ -317,8 +317,10 @@ void ImageDecoder::setTargetColorProfile(const WebVector<char>& profile)
|
|
|
| // FIXME: Add optional ICCv4 support and support for multiple monitors.
|
| gTargetColorProfile = qcms_profile_from_memory(profile.data(), profile.size());
|
| + if (!gTargetColorProfile)
|
| + return;
|
|
|
| - if (gTargetColorProfile && qcms_profile_is_bogus(gTargetColorProfile)) {
|
| + if (qcms_profile_is_bogus(gTargetColorProfile)) {
|
| qcms_profile_release(gTargetColorProfile);
|
| gTargetColorProfile = nullptr;
|
| return;
|
|
|