-
由 Iñaki Baz Castillo 提交于
- Fixes #883 - `IceServer` manages a list of `TransportTuples` instances in a `std::list`. Those are **not** pointers. - When `IceServer` removes a tuple from the list (for different reasons), it removes it from its `std::list`, which means that the removed `TransportTuple` is **freed**. And then it notifies `WebRtcTransport` via `this->listener->OnIceServerTupleRemoved(this, removedTuple);`. Problem was that `WebRtcTransport` reads tuple data (`tuple->GetProtocol()` etc) so it's doing that in an already freed memory!, so crash. - Solution is to first notify the listener (`WebRtcTransport`) then remove it from the list (so free it after used).