Chromium Code Reviews
DescriptionFix leak of RTCPeerConnectionHandler if PeerConnection.close() is called from js.
This fixes a bug where RTCPeerConnectionHandler::client_ is set to null when RTCPeerConnectionHandler.stop() is called.
RTCPeerConnectionHandler.stop() is a pretty bad name (override from blink::WebRTCPeerConnectionHandler) since it is triggered when JS or the browser process want to close a PeerConnection.
Since client_ was set to null, RTCPeerConnectionHandler::DestructAllHandlers did not delete RTCPeerConnectionHandler.
BUG=542132
Committed: https://crrev.com/9596af111d9e82b0e27c9fab01fa688515623b1f
Cr-Commit-Position: refs/heads/master@{#359334}
Patch Set 1 #Patch Set 2 : Simple unittest of DestructAllHandlers #
Total comments: 10
Patch Set 3 : Addressed comments. #
Total comments: 2
Messages
Total messages: 14 (4 generated)
|
|||||||||||||||||||||||||||||||||||||