Changeset 166373 in webkit


Ignore:
Timestamp:
Mar 27, 2014 3:28:04 PM (10 years ago)
Author:
Simon Fraser
Message:

Don't leak the WKBrowsingContextController
https://bugs.webkit.org/show_bug.cgi?id=130815

Reviewed by Tim Horton.

Use adoptNS to avoid leaking the WKBrowsingContextController.

  • UIProcess/ios/WKContentView.mm:

(-[WKContentView browsingContextController]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r166371 r166373  
     12014-03-27  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Don't leak the WKBrowsingContextController
     4        https://bugs.webkit.org/show_bug.cgi?id=130815
     5
     6        Reviewed by Tim Horton.
     7       
     8        Use adoptNS to avoid leaking the WKBrowsingContextController.
     9
     10        * UIProcess/ios/WKContentView.mm:
     11        (-[WKContentView browsingContextController]):
     12
    1132014-03-27  Joseph Pecoraro  <pecoraro@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/ios/WKContentView.mm

    r166333 r166373  
    237237{
    238238    if (!_browsingContextController)
    239         _browsingContextController = [[WKBrowsingContextController alloc] _initWithPageRef:toAPI(_page.get())];
     239        _browsingContextController = adoptNS([[WKBrowsingContextController alloc] _initWithPageRef:toAPI(_page.get())]);
    240240
    241241    return _browsingContextController.get();
Note: See TracChangeset for help on using the changeset viewer.