Index: ios/chrome/browser/suggestions/ios_image_decoder_impl.mm |
diff --git a/ios/chrome/browser/suggestions/ios_image_decoder_impl.mm b/ios/chrome/browser/suggestions/ios_image_decoder_impl.mm |
index 52fc55073344bc9ee36b61d96cc025bec5caf310..1208b2b743d00b59fba9e047de36db0b736fc36f 100644 |
--- a/ios/chrome/browser/suggestions/ios_image_decoder_impl.mm |
+++ b/ios/chrome/browser/suggestions/ios_image_decoder_impl.mm |
@@ -148,7 +148,7 @@ void IOSImageDecoderImpl::CreateUIImageAndRunCallback( |
// This constructor does not retain the image, but expects to take the |
// ownership, therefore, |ui_image| is retained here, but not released |
// afterwards. |
- gfx::Image gfx_image([ui_image retain]); |
+ gfx::Image gfx_image(ui_image, true); |
callback.Run(gfx_image); |
return; |
} |