summaryrefslogtreecommitdiffstats
path: root/ui/gfx/image/image_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gfx/image/image_util.cc')
-rw-r--r--ui/gfx/image/image_util.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gfx/image/image_util.cc b/ui/gfx/image/image_util.cc
index 4216629..ea870c0 100644
--- a/ui/gfx/image/image_util.cc
+++ b/ui/gfx/image/image_util.cc
@@ -13,9 +13,9 @@
namespace gfx {
Image* ImageFromPNGEncodedData(const unsigned char* input, size_t input_size) {
- scoped_ptr<SkBitmap> favicon_bitmap(new SkBitmap());
- if (gfx::PNGCodec::Decode(input, input_size, favicon_bitmap.get()))
- return new Image(favicon_bitmap.release());
+ SkBitmap favicon_bitmap;
+ if (gfx::PNGCodec::Decode(input, input_size, &favicon_bitmap))
+ return new Image(favicon_bitmap);
return NULL;
}