Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Unified Diff: chrome_frame/chrome_frame_automation.cc

Issue 342018: Remove a DCHECK that happens on every exit of IE. We appear to be leaking aut... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_automation.cc
===================================================================
--- chrome_frame/chrome_frame_automation.cc (revision 30332)
+++ chrome_frame/chrome_frame_automation.cc (working copy)
@@ -164,7 +164,12 @@
}
ProxyFactory::~ProxyFactory() {
- DCHECK_EQ(proxies_.container().size(), 0);
+ for (size_t i = 0; i < proxies_.container().size(); ++i) {
+ if (WAIT_OBJECT_0 !=
+ WaitForSingleObject(proxies_[i]->thread->thread_handle(), 0))
+ // TODO(stoyan): Don't leak proxies on exit.
+ DLOG(ERROR) << "Proxies leaked on exit.";
+ }
}
void* ProxyFactory::GetAutomationServer(int launch_timeout,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698