| Index: net/websockets/websocket_throttle.cc
|
| diff --git a/net/websockets/websocket_throttle.cc b/net/websockets/websocket_throttle.cc
|
| index fb320b647f092c19915ad00612e040adcea4d148..d47d2e8242041d57b300ea8e947aeb92a5a126f5 100644
|
| --- a/net/websockets/websocket_throttle.cc
|
| +++ b/net/websockets/websocket_throttle.cc
|
| @@ -244,8 +244,10 @@ void WebSocketThrottle::RemoveFromQueue(SocketStream* socket,
|
| ConnectingQueue* queue = iter->second;
|
| DCHECK(state == queue->front());
|
| queue->pop_front();
|
| - if (queue->empty())
|
| + if (queue->empty()) {
|
| + delete queue;
|
| addr_map_.erase(iter);
|
| + }
|
| }
|
| for (ConnectingQueue::iterator iter = queue_.begin();
|
| iter != queue_.end();
|
|
|