Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1c6bc747e8bf3db36cf493552c15935444ec26ac
      
https://github.com/WebKit/WebKit/commit/1c6bc747e8bf3db36cf493552c15935444ec26ac
  Author: Youenn Fablet <[email protected]>
  Date:   2025-06-25 (Wed, 25 Jun 2025)

  Changed paths:
    M Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp
    M Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h

  Log Message:
  -----------
  LibWebRTCMediaEndpoint::m_peerConnectionBackend should be a WeakPtr, not a 
WeakRef
https://bugs.webkit.org/show_bug.cgi?id=294958
rdar://145704687

Reviewed by Jean-Yves Avenard.

LibWebRTCMediaEndpoint is refcounted, we cannot ensure that it will be 
destroyed before its m_peerConnectionBackend.
We make m_peerConnectionBackend a WeakPtr and we add a missing check in 
LibWebRTCMediaEndpoint::OnStatsDelivered.

* Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
(WebCore::LibWebRTCMediaEndpoint::setConfiguration):
(WebCore::LibWebRTCMediaEndpoint::protectedPeerConnectionBackend const):
(WebCore::LibWebRTCMediaEndpoint::OnStatsDelivered):
* Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.h:

Canonical link: https://commits.webkit.org/296615@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to