Index: chrome/gpu/gpu_backing_store_glx.cc |
diff --git a/chrome/gpu/gpu_backing_store_glx.cc b/chrome/gpu/gpu_backing_store_glx.cc |
index 1c91a641665f4f4eec09d3f95ec4ac3ee3315dda..37076cc67ca4eec6a7e577fb61adb4685adfa791 100644 |
--- a/chrome/gpu/gpu_backing_store_glx.cc |
+++ b/chrome/gpu/gpu_backing_store_glx.cc |
@@ -63,7 +63,7 @@ void GpuBackingStoreGLX::OnPaintToBackingStore( |
TransportDIB::Id id, |
const gfx::Rect& bitmap_rect, |
const std::vector<gfx::Rect>& copy_rects) { |
- TransportDIB* dib = TransportDIB::Map(id); |
+ scoped_ptr<TransportDIB> dib(TransportDIB::Map(id)); |
view_->BindContext(); |
scoped_ptr<skia::PlatformCanvas> canvas( |