diff --git a/pc/video_rtp_receiver.cc b/pc/video_rtp_receiver.cc index ac912a7820..0e8044af3a 100644 --- a/pc/video_rtp_receiver.cc +++ b/pc/video_rtp_receiver.cc @@ -56,6 +56,8 @@ VideoRtpReceiver::VideoRtpReceiver( VideoRtpReceiver::~VideoRtpReceiver() { RTC_DCHECK_RUN_ON(&signaling_thread_checker_); RTC_DCHECK(!media_channel_); + + track_->UnregisterObserver(this); } std::vector VideoRtpReceiver::stream_ids() const {