| Index: content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
|
| diff --git a/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc b/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
|
| index 574b4f68697126c0d2bec7f38718deace1308fdd..60cd598496fbc5641083786a0e2ecae4fbf08bab 100644
|
| --- a/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
|
| +++ b/content/common/gpu/gpu_memory_buffer_factory_io_surface.cc
|
| @@ -146,9 +146,8 @@ void GpuMemoryBufferFactoryIOSurface::DestroyGpuMemoryBuffer(
|
| base::AutoLock lock(io_surfaces_lock_);
|
|
|
| IOSurfaceMapKey key(id, client_id);
|
| - IOSurfaceMap::iterator it = io_surfaces_.find(key);
|
| - if (it != io_surfaces_.end())
|
| - io_surfaces_.erase(it);
|
| + DCHECK(io_surfaces_.find(key) != io_surfaces_.end());
|
| + io_surfaces_.erase(key);
|
| }
|
|
|
| gpu::ImageFactory* GpuMemoryBufferFactoryIOSurface::AsImageFactory() {
|
|
|