summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue/fake_signal_strategy.h
diff options
context:
space:
mode:
authorsergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-30 01:58:37 +0000
committersergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-30 01:58:37 +0000
commit3e1547e19140f9acda5035fdc25a9001b335dad7 (patch)
tree9ae140747431acfc364113dfab0088b1026eef73 /remoting/jingle_glue/fake_signal_strategy.h
parent92485563d0e0ea384fbe3a411e815adbc88f7ba8 (diff)
downloadchromium_src-3e1547e19140f9acda5035fdc25a9001b335dad7.zip
chromium_src-3e1547e19140f9acda5035fdc25a9001b335dad7.tar.gz
chromium_src-3e1547e19140f9acda5035fdc25a9001b335dad7.tar.bz2
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
Diffstat (limited to 'remoting/jingle_glue/fake_signal_strategy.h')
-rw-r--r--remoting/jingle_glue/fake_signal_strategy.h5
1 files changed, 4 insertions, 1 deletions
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 <queue>
#include <string>
#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<buzz::XmlElement*> pending_messages_;
+
ScopedRunnableMethodFactory<FakeSignalStrategy> task_factory_;
DISALLOW_COPY_AND_ASSIGN(FakeSignalStrategy);