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

Unified Diff: jingle/glue/thread_wrapper.cc

Issue 9255010: Fix leak in JingleThreadWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 11 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: jingle/glue/thread_wrapper.cc
diff --git a/jingle/glue/thread_wrapper.cc b/jingle/glue/thread_wrapper.cc
index 1955a2d9156182fb7d1ccaf5c6a5d8f68352004b..8d7654a719e0881fab221148b17725700f234d87 100644
--- a/jingle/glue/thread_wrapper.cc
+++ b/jingle/glue/thread_wrapper.cc
@@ -49,6 +49,7 @@ JingleThreadWrapper::JingleThreadWrapper(MessageLoop* message_loop)
pending_send_event_(true, false) {
DCHECK_EQ(message_loop_, MessageLoop::current());
+ delete talk_base::ThreadManager::Instance()->GetCurrentThread();
Ronghua Wu (Left Chromium) 2012/01/18 06:58:58 It has been renamed to CurrentThread.
Sergey Ulanov 2012/01/18 07:04:53 Done.
talk_base::ThreadManager::Instance()->SetCurrentThread(this);
talk_base::MessageQueueManager::Instance()->Add(this);
message_loop_->AddDestructionObserver(this);
« 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