| Index: ui/gfx/color_profile_mac.cc
|
| diff --git a/ui/gfx/color_profile_mac.cc b/ui/gfx/color_profile_mac.cc
|
| index 4ad1c5788c42f0303f12f405dc7a30f383f73f0b..c313745c07628e4548d1daa984abf7b2d7660a1f 100644
|
| --- a/ui/gfx/color_profile_mac.cc
|
| +++ b/ui/gfx/color_profile_mac.cc
|
| @@ -10,7 +10,8 @@ namespace gfx {
|
|
|
| void ReadColorProfile(std::vector<char>* profile) {
|
| CGColorSpaceRef monitor_color_space(base::mac::GetSystemColorSpace());
|
| - CFDataRef icc_profile(CGColorSpaceCopyICCProfile(monitor_color_space));
|
| + base::mac::ScopedCFTypeRef<CFDataRef> icc_profile(
|
| + CGColorSpaceCopyICCProfile(monitor_color_space));
|
| if (icc_profile) {
|
| size_t length = CFDataGetLength(icc_profile);
|
| if (length > gfx::kMaxProfileLength)
|
|
|