Re: [Bug 25724] New: Allow garbage collection of closed PeerConnections

On 16 May 2014 00:24, Harald Alvestrand <> wrote:
> Once a PeerConnection has close() called, all tracks sourced by it should
> end. We'd better write that down somewhere too; it's not in the close()
> description now.

I think that's right.  Tracks don't reference the PC, but the
implication from this response is that they do hold a strong
reference.  That is, since the <video>/<audio> would also hold a
strong reference to the track via the stream, the logical way for the
media element to hold the PC alive is if there is a transitive
reference via the track.

That leads me to ask whether an ended track needs to drop its
reference to its source.  I think that the answer can be yes, which
allows for more aggressive GC, but I might have missed something.

Received on Friday, 16 May 2014 14:01:08 UTC