Index: webrtc/base/thread.cc |
diff --git a/webrtc/base/thread.cc b/webrtc/base/thread.cc |
index ed0c44674183e5c141a7638953446a89ec07b65a..181cdb6e2acf6d68243c3791ecc071845a133ee1 100644 |
--- a/webrtc/base/thread.cc |
+++ b/webrtc/base/thread.cc |
@@ -561,6 +561,10 @@ AutoThread::~AutoThread() { |
} |
#if defined(WEBRTC_WIN) |
+ComThread::~ComThread() { |
+ Stop(); |
+} |
+ |
void ComThread::Run() { |
HRESULT hr = CoInitializeEx(NULL, COINIT_MULTITHREADED); |
RTC_DCHECK(SUCCEEDED(hr)); |