charon-xpc: Properly xpc_retain() connections we xpc_release()

This commit is contained in:
Martin Willi
2013-10-28 14:51:40 +01:00
parent 888d8d73ab
commit a1c2ed8820
2 changed files with 2 additions and 0 deletions
@@ -281,6 +281,7 @@ static void cleanup_connection(private_xpc_dispatch_t *this)
*/
static void set_handler(private_xpc_dispatch_t *this)
{
xpc_retain(this->service);
xpc_connection_set_event_handler(this->service, ^(xpc_object_t conn)
{
xpc_connection_set_event_handler(conn, ^(xpc_object_t event)