| Index: chrome_frame/chrome_frame_automation.cc
|
| diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
|
| index b4d302300e173ac3eac986f366b014c1a89ed6b6..88f5f9c5a6677559e3c0f99378d5d72241509182 100644
|
| --- a/chrome_frame/chrome_frame_automation.cc
|
| +++ b/chrome_frame/chrome_frame_automation.cc
|
| @@ -519,7 +519,13 @@ bool ProxyFactory::ReleaseAutomationServer(void* server_id,
|
| Vector::ContainerType::iterator it = std::find(proxies_.container().begin(),
|
| proxies_.container().end(),
|
| entry);
|
| - proxies_.container().erase(it);
|
| + if (it != proxies_.container().end()) {
|
| + proxies_.container().erase(it);
|
| + } else {
|
| + DLOG(ERROR) << "Proxy wasn't found. Proxy map is likely empty (size="
|
| + << proxies_.container().size() << ").";
|
| + }
|
| +
|
| lock_.Release();
|
| }
|
|
|
|
|