Index: base/message_loop.cc |
diff --git a/base/message_loop.cc b/base/message_loop.cc |
index 0d8a8ef0d769875f386e244b69932779e9ed2271..c8b2ecb49261d6159a271a8fdcb8aa43d54f9467 100644 |
--- a/base/message_loop.cc |
+++ b/base/message_loop.cc |
@@ -221,6 +221,9 @@ MessageLoop::~MessageLoop() { |
WillDestroyCurrentMessageLoop(); |
message_loop_proxy_ = NULL; |
+ // Stop the message pump and free any thread-bound resources. |
+ pump_->Stop(); |
+ |
// OK, now make it so that no one can find us. |
lazy_tls_ptr.Pointer()->Set(NULL); |