Changeset 80599 in webkit


Ignore:
Timestamp:
Mar 8, 2011 3:43:23 PM (13 years ago)
Author:
jberlin@webkit.org
Message:

Fix two leaks I introduced into the API tests.

Rubber-stamped by Adam Roben.

  • TestWebKitAPI/Tests/WebKit2/win/DoNotCopyANullCFURLResponse.cpp:

(TestWebKitAPI::TEST):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r80586 r80599  
     12011-03-08  Jessie Berlin  <jberlin@apple.com>
     2
     3        Rubber-stamped by Adam Roben.
     4
     5        Fix two leaks I introduced into the API tests.
     6
     7        * TestWebKitAPI/Tests/WebKit2/win/DoNotCopyANullCFURLResponse.cpp:
     8        (TestWebKitAPI::TEST):
     9
    1102011-03-08  Jessie Berlin  <jberlin@apple.com>
    211
  • trunk/Tools/TestWebKitAPI/Tests/WebKit2/win/DoNotCopyANullCFURLResponse.cpp

    r80586 r80599  
    3535{
    3636    // Neither of these calls should cause a crash.
    37     WKRetainPtr<WKURLResponseRef> nullWKResponse = WKURLResponseCreateWithCFURLResponse(0);
    38     RetainPtr<CFURLResponseRef> nullCFResponse = WKURLResponseCopyCFURLResponse(kCFAllocatorDefault, nullWKResponse.get());
     37    WKRetainPtr<WKURLResponseRef> nullWKResponse(AdoptWK, WKURLResponseCreateWithCFURLResponse(0));
     38    RetainPtr<CFURLResponseRef> nullCFResponse(AdoptCF, WKURLResponseCopyCFURLResponse(kCFAllocatorDefault, nullWKResponse.get()));
    3939}
    4040
Note: See TracChangeset for help on using the changeset viewer.