Index: chrome/browser/renderer_host/render_widget_helper.cc |
diff --git a/chrome/browser/renderer_host/render_widget_helper.cc b/chrome/browser/renderer_host/render_widget_helper.cc |
index baa8045de4dfac3d8985085f80a20743e0707fb4..e2cd531eb83ff620409accb11b1133f5725ace52 100644 |
--- a/chrome/browser/renderer_host/render_widget_helper.cc |
+++ b/chrome/browser/renderer_host/render_widget_helper.cc |
@@ -296,7 +296,8 @@ void RenderWidgetHelper::FreeTransportDIB(TransportDIB::Id dib_id) { |
i = allocated_dibs_.find(dib_id); |
if (i != allocated_dibs_.end()) { |
- HANDLE_EINTR(close(i->second)); |
+ if (HANDLE_EINTR(close(i->second)) < 0) |
+ PLOG(ERROR) << "close"; |
allocated_dibs_.erase(i); |
} else { |
DLOG(WARNING) << "Renderer asked us to free unknown transport DIB"; |
@@ -306,7 +307,8 @@ void RenderWidgetHelper::FreeTransportDIB(TransportDIB::Id dib_id) { |
void RenderWidgetHelper::ClearAllocatedDIBs() { |
for (std::map<TransportDIB::Id, int>::iterator |
i = allocated_dibs_.begin(); i != allocated_dibs_.end(); ++i) { |
- HANDLE_EINTR(close(i->second)); |
+ if (HANDLE_EINTR(close(i->second)) < 0) |
+ PLOG(ERROR) << "close: " << i->first; |
Evan Martin
2010/06/22 23:10:00
i->first or i->second here? maybe make it clear i
|
} |
allocated_dibs_.clear(); |