From 3e1547e19140f9acda5035fdc25a9001b335dad7 Mon Sep 17 00:00:00 2001 From: "sergeyu@chromium.org" Date: Thu, 30 Jun 2011 01:58:37 +0000 Subject: Fix memory leak in remoting_unittests. BUG=None TEST=valgrind is happy. Review URL: http://codereview.chromium.org/7283033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91077 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/jingle_glue/fake_signal_strategy.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'remoting/jingle_glue/fake_signal_strategy.h') diff --git a/remoting/jingle_glue/fake_signal_strategy.h b/remoting/jingle_glue/fake_signal_strategy.h index 83e1ae9..553313e 100644 --- a/remoting/jingle_glue/fake_signal_strategy.h +++ b/remoting/jingle_glue/fake_signal_strategy.h @@ -5,6 +5,7 @@ #ifndef REMOTING_JINGLE_GLUE_FAKE_SIGNAL_STRATEGY_H_ #define REMOTING_JINGLE_GLUE_FAKE_SIGNAL_STRATEGY_H_ +#include #include #include "base/task.h" @@ -34,7 +35,7 @@ class FakeSignalStrategy : public SignalStrategy, // Called by the |peer_|. Takes ownership of |stanza|. void OnIncomingMessage(buzz::XmlElement* stanza); - void DeliverIncomingMessage(buzz::XmlElement* stanza); + void DeliverIncomingMessages(); std::string jid_; FakeSignalStrategy* peer_; @@ -43,6 +44,8 @@ class FakeSignalStrategy : public SignalStrategy, int last_id_; + std::queue pending_messages_; + ScopedRunnableMethodFactory task_factory_; DISALLOW_COPY_AND_ASSIGN(FakeSignalStrategy); -- cgit v1.1