diff options
author | mallinath@chromium.org <mallinath@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-01 23:48:13 +0000 |
---|---|---|
committer | mallinath@chromium.org <mallinath@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-01 23:48:13 +0000 |
commit | 611e088bdfd5924b9dc6c81f7a465b1fed8d371a (patch) | |
tree | cfd444081d8ae7d4e260f3ce7b20985714d895e2 /jingle | |
parent | 24b31895f477bd1e2f89a148681121e34435b23c (diff) | |
download | chromium_src-611e088bdfd5924b9dc6c81f7a465b1fed8d371a.zip chromium_src-611e088bdfd5924b9dc6c81f7a465b1fed8d371a.tar.gz chromium_src-611e088bdfd5924b9dc6c81f7a465b1fed8d371a.tar.bz2 |
Currently when talk_base::Thread exists, Clear(NULL) is called from its destructor. But JingleThreadWrapper never gets a chance to remove pending messages from its queue.
The change will call Clear() in its destructor.
BUG=129321
Review URL: https://chromiumcodereview.appspot.com/10474002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle')
-rw-r--r-- | jingle/glue/thread_wrapper.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jingle/glue/thread_wrapper.cc b/jingle/glue/thread_wrapper.cc index 62538da..e31f8de 100644 --- a/jingle/glue/thread_wrapper.cc +++ b/jingle/glue/thread_wrapper.cc @@ -59,6 +59,7 @@ JingleThreadWrapper::JingleThreadWrapper(MessageLoop* message_loop) } JingleThreadWrapper::~JingleThreadWrapper() { + Clear(NULL, talk_base::MQID_ANY, NULL); } void JingleThreadWrapper::WillDestroyCurrentMessageLoop() { |