diff --git a/pc/video_rtp_receiver.cc b/pc/video_rtp_receiver.cc index 4d2d9d6c52..63a2d72879 100644 --- a/pc/video_rtp_receiver.cc +++ b/pc/video_rtp_receiver.cc @@ -53,6 +53,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 {