Fixed space leak in DebuggerAgentSession.
Ownership in this part is still very convoluted and should probably be cleaned up, this is only the minimal CL needed to fix the leak. R=yangguo@chromium.org Review URL: https://codereview.chromium.org/153623009 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19148 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
e6bc60c98d
commit
4ab3270dd5
@ -173,6 +173,11 @@ void DebuggerAgent::DebuggerMessage(const v8::Debug::Message& message) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DebuggerAgentSession::~DebuggerAgentSession() {
|
||||||
|
delete client_;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void DebuggerAgent::OnSessionClosed(DebuggerAgentSession* session) {
|
void DebuggerAgent::OnSessionClosed(DebuggerAgentSession* session) {
|
||||||
// Don't do anything during termination.
|
// Don't do anything during termination.
|
||||||
if (terminate_) {
|
if (terminate_) {
|
||||||
|
@ -83,6 +83,7 @@ class DebuggerAgentSession: public Thread {
|
|||||||
DebuggerAgentSession(DebuggerAgent* agent, Socket* client)
|
DebuggerAgentSession(DebuggerAgent* agent, Socket* client)
|
||||||
: Thread("v8:DbgAgntSessn"),
|
: Thread("v8:DbgAgntSessn"),
|
||||||
agent_(agent), client_(client) {}
|
agent_(agent), client_(client) {}
|
||||||
|
~DebuggerAgentSession();
|
||||||
|
|
||||||
void DebuggerMessage(Vector<uint16_t> message);
|
void DebuggerMessage(Vector<uint16_t> message);
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
|
Loading…
Reference in New Issue
Block a user