Changeset 214689 in webkit


Ignore:
Timestamp:
Mar 31, 2017 3:05:22 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Fix memory leak in CreateSessionDescriptionObserver::OnSuccess
https://bugs.webkit.org/show_bug.cgi?id=170357

Patch by Youenn Fablet <youenn@apple.com> on 2017-03-31
Reviewed by Geoffrey Garen.

No change of behavior.

  • Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:

(WebCore::LibWebRTCMediaEndpoint::createSessionDescriptionSucceeded): Adopting the raw pointer parameter.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r214688 r214689  
     12017-03-31  Youenn Fablet  <youenn@apple.com>
     2
     3        Fix memory leak in CreateSessionDescriptionObserver::OnSuccess
     4        https://bugs.webkit.org/show_bug.cgi?id=170357
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        No change of behavior.
     9
     10        * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
     11        (WebCore::LibWebRTCMediaEndpoint::createSessionDescriptionSucceeded): Adopting the raw pointer parameter.
     12
    1132017-03-31  Fujii Hironori  <Hironori.Fujii@sony.com>
    214
  • trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp

    r214627 r214689  
    704704}
    705705
    706 void LibWebRTCMediaEndpoint::createSessionDescriptionSucceeded(webrtc::SessionDescriptionInterface* description)
    707 {
     706void LibWebRTCMediaEndpoint::createSessionDescriptionSucceeded(webrtc::SessionDescriptionInterface* rawDescription)
     707{
     708    std::unique_ptr<webrtc::SessionDescriptionInterface> description(rawDescription);
     709
    708710    std::string sdp;
    709711    description->ToString(&sdp);
Note: See TracChangeset for help on using the changeset viewer.