⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 136172 in webkit


Ignore:
Timestamp:
Nov 29, 2012, 3:16:13 PM (14 years ago)
Author:
andersca@apple.com
Message:

CoreIPC::Connection should retain its xpc_connection_t
​https://bugs.webkit.org/show_bug.cgi?id=103671
<rdar://problem/12717331>

Reviewed by Beth Dakin.

  • Platform/CoreIPC/mac/ConnectionMac.cpp:

(CoreIPC::Connection::platformInitialize):
Retain the xpc_connection_t object here to balance the xpc_object_release in platformInvalidate.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r136159 r136172  
     12012-11-29  Anders Carlsson  <andersca@apple.com>
     2
     3        CoreIPC::Connection should retain its xpc_connection_t
     4        https://bugs.webkit.org/show_bug.cgi?id=103671
     5        <rdar://problem/12717331>
     6
     7        Reviewed by Beth Dakin.
     8
     9        * Platform/CoreIPC/mac/ConnectionMac.cpp:
     10        (CoreIPC::Connection::platformInitialize):
     11        Retain the xpc_connection_t object here to balance the xpc_object_release in platformInvalidate.
     12
    1132012-11-29  Brent Fulgham  <bfulgham@webkit.org>
    214
  • trunk/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp

    r132085 r136172  
    9393
    9494#if HAVE(XPC)
    95     m_xpcConnection = identifier.xpcConnection;
     95    // FIXME: Instead of explicitly retaining the connection here, Identifier::xpcConnection
     96    // should just be a smart pointer.
     97    if (identifier.xpcConnection)
     98        m_xpcConnection = static_cast<xpc_connection_t>(xpc_retain(identifier.xpcConnection));
    9699#endif
    97100}
Note: See TracChangeset for help on using the changeset viewer.