Index: ui/base/resource/resource_bundle_ios.mm |
diff --git a/ui/base/resource/resource_bundle_ios.mm b/ui/base/resource/resource_bundle_ios.mm |
index 43a5325f1695e2763c0ea388efb9fdad9d9c087d..6ffb68754d951fbf4d553b23602034f41d42b930 100644 |
--- a/ui/base/resource/resource_bundle_ios.mm |
+++ b/ui/base/resource/resource_bundle_ios.mm |
@@ -163,7 +163,7 @@ gfx::Image& ResourceBundle::GetNativeImageNamed(int resource_id) { |
} |
// The gfx::Image takes ownership. |
- image = gfx::Image(ui_image.release()); |
+ image = gfx::Image(ui_image, base::scoped_policy::RETAIN); |
} |
base::AutoLock lock(*images_and_fonts_lock_); |