Index: content/browser/browser_main_loop.cc |
diff --git a/content/browser/browser_main_loop.cc b/content/browser/browser_main_loop.cc |
index dd93e586511e573cc9cf26bc7c154e2f66a8dc75..0ae6be228c791384f600f7aed3aaa07f8d0dfb0d 100644 |
--- a/content/browser/browser_main_loop.cc |
+++ b/content/browser/browser_main_loop.cc |
@@ -158,6 +158,10 @@ BrowserMainLoop::BrowserMainLoop(const content::MainFunctionParams& parameters) |
} |
BrowserMainLoop::~BrowserMainLoop() { |
+ // Release/destroy parts here, before OleUninitialize() and before other |
+ // members are destroyed (in particular main_message_loop_). |
+ parts_.reset(); |
+ |
#if defined(OS_WIN) |
OleUninitialize(); |
#endif |