Changeset 165252 in webkit


Ignore:
Timestamp:
Mar 6, 2014, 11:20:51 PM (12 years ago)
Author:
akling@apple.com
Message:

WebCoreResourceHandleAsOperationQueueDelegate over-retains NSURLRequest.
<https://webkit.org/b/129862>

Don't retain the pointer before assigning it to a RetainPtr, since that
will cause the object to leak.

Reviewed by Alexey Proskuryakov.

  • platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm:

(-[WebCoreResourceHandleAsOperationQueueDelegate continueWillSendRequest:]):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r165251 r165252  
     12014-03-06  Andreas Kling  <akling@apple.com>
     2
     3        WebCoreResourceHandleAsOperationQueueDelegate over-retains NSURLRequest.
     4        <https://webkit.org/b/129862>
     5
     6        Don't retain the pointer before assigning it to a RetainPtr, since that
     7        will cause the object to leak.
     8
     9        Reviewed by Alexey Proskuryakov.
     10
     11        * platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm:
     12        (-[WebCoreResourceHandleAsOperationQueueDelegate continueWillSendRequest:]):
     13
    1142014-03-06  Dan Bernstein  <mitz@apple.com>
    215
  • trunk/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm

    r163905 r165252  
    7878- (void)continueWillSendRequest:(NSURLRequest *)newRequest
    7979{
    80     m_requestResult = [newRequest retain];
     80    m_requestResult = newRequest;
    8181    dispatch_semaphore_signal(m_semaphore);
    8282}
Note: See TracChangeset for help on using the changeset viewer.