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

Changeset 136190 in webkit


Ignore:
Timestamp:
Nov 29, 2012, 5:25:07 PM (14 years ago)
Author:
andersca@apple.com
Message:

Initialize m_xpcConnection to null if the identifier doesn't have an XPC connection
​https://bugs.webkit.org/show_bug.cgi?id=103689

Reviewed by Darin Adler.

  • Platform/CoreIPC/mac/ConnectionMac.cpp:

(CoreIPC::Connection::platformInitialize):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r136181 r136190  
     12012-11-29  Anders Carlsson  <andersca@apple.com>
     2
     3        Initialize m_xpcConnection to null if the identifier doesn't have an XPC connection
     4        https://bugs.webkit.org/show_bug.cgi?id=103689
     5
     6        Reviewed by Darin Adler.
     7
     8        * Platform/CoreIPC/mac/ConnectionMac.cpp:
     9        (CoreIPC::Connection::platformInitialize):
     10
    1112012-11-29  Christophe Dumez  <christophe.dumez@intel.com>
    212
  • trunk/Source/WebKit2/Platform/CoreIPC/mac/ConnectionMac.cpp

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