| Index: ui/base/resource/resource_bundle.cc
|
| diff --git a/ui/base/resource/resource_bundle.cc b/ui/base/resource/resource_bundle.cc
|
| index 24c05606eead09f08c2297556732a361cfc9aa56..b2f6b70e356178fe9d655eac811371537110cdbe 100644
|
| --- a/ui/base/resource/resource_bundle.cc
|
| +++ b/ui/base/resource/resource_bundle.cc
|
| @@ -403,10 +403,10 @@ gfx::Image* ResourceBundle::GetEmptyImage() {
|
| if (!empty_image) {
|
| // The placeholder bitmap is bright red so people notice the problem.
|
| // This bitmap will be leaked, but this code should never be hit.
|
| - SkBitmap* bitmap = new SkBitmap();
|
| - bitmap->setConfig(SkBitmap::kARGB_8888_Config, 32, 32);
|
| - bitmap->allocPixels();
|
| - bitmap->eraseARGB(255, 255, 0, 0);
|
| + SkBitmap bitmap;
|
| + bitmap.setConfig(SkBitmap::kARGB_8888_Config, 32, 32);
|
| + bitmap.allocPixels();
|
| + bitmap.eraseARGB(255, 255, 0, 0);
|
| empty_image = new gfx::Image(bitmap);
|
| }
|
| return empty_image;
|
|
|