| Index: app/surface/accelerated_surface_mac.cc
|
| diff --git a/app/surface/accelerated_surface_mac.cc b/app/surface/accelerated_surface_mac.cc
|
| index ef2440795c4424cbbe8dd18c0431c74a631e6f00..a3cd8b938ce0ee9295aafee621265d1d1b7386ee 100644
|
| --- a/app/surface/accelerated_surface_mac.cc
|
| +++ b/app/surface/accelerated_surface_mac.cc
|
| @@ -8,6 +8,7 @@
|
| #include "app/gfx/gl/gl_implementation.h"
|
| #include "app/surface/io_surface_support_mac.h"
|
| #include "base/logging.h"
|
| +#include "base/scoped_cftyperef.h"
|
| #include "gfx/rect.h"
|
|
|
| AcceleratedSurface::AcceleratedSurface()
|
| @@ -109,8 +110,9 @@ static void AddBooleanValue(CFMutableDictionaryRef dictionary,
|
| static void AddIntegerValue(CFMutableDictionaryRef dictionary,
|
| const CFStringRef key,
|
| int32 value) {
|
| - CFNumberRef number = CFNumberCreate(NULL, kCFNumberSInt32Type, &value);
|
| - CFDictionaryAddValue(dictionary, key, number);
|
| + scoped_cftyperef<CFNumberRef> number(
|
| + CFNumberCreate(NULL, kCFNumberSInt32Type, &value));
|
| + CFDictionaryAddValue(dictionary, key, number.get());
|
| }
|
|
|
| void AcceleratedSurface::AllocateRenderBuffers(GLenum target,
|
|
|