Changeset 103414 in webkit


Ignore:
Timestamp:
Dec 21, 2011 10:43:48 AM (12 years ago)
Author:
weinig@apple.com
Message:

Cleanup up clients when deallocating WebKit2 API objects
https://bugs.webkit.org/show_bug.cgi?id=75014

Reviewed by Adam Roben.

  • UIProcess/API/mac/WKBrowsingContextController.mm:

(-[WKBrowsingContextController dealloc]):

  • UIProcess/API/mac/WKConnection.mm:

(-[WKConnection dealloc]):
Clear clients on dealloc.

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r103413 r103414  
     12011-12-21  Sam Weinig  <sam@webkit.org>
     2
     3        Cleanup up clients when deallocating WebKit2 API objects
     4        https://bugs.webkit.org/show_bug.cgi?id=75014
     5
     6        Reviewed by Adam Roben.
     7
     8        * UIProcess/API/mac/WKBrowsingContextController.mm:
     9        (-[WKBrowsingContextController dealloc]):
     10        * UIProcess/API/mac/WKConnection.mm:
     11        (-[WKConnection dealloc]):
     12        Clear clients on dealloc.
     13
    1142011-12-21  Rafael Brandao  <rafael.lobo@openbossa.org>
    215
  • trunk/Source/WebKit2/UIProcess/API/mac/WKBrowsingContextController.mm

    r102633 r103414  
    7979- (void)dealloc
    8080{
     81    WKPageSetPageLoaderClient(_data->_pageRef.get(), 0);
     82
    8183    [_data release];
    8284    [super dealloc];
  • trunk/Source/WebKit2/UIProcess/API/mac/WKConnection.mm

    r102633 r103414  
    5050- (void)dealloc
    5151{
     52    WKConnectionSetConnectionClient(_data->_connectionRef.get(), 0);
     53
    5254    [_data release];
    5355    [super dealloc];
Note: See TracChangeset for help on using the changeset viewer.