Cancel download no longer crashes the app.

This commit is contained in:
Erik Aderstedt committed 2012-08-10 12:29:38 +02:00
1 parent 04b1514452
commit aebb767cfb
1 file changed
+2 -2
+2 -2
View File
@@ -94,7 +94,6 @@
- (void)cancel {
xpc_connection_cancel(connection);
xpc_release(connection);
}
- (xpc_connection_t)getSandboxXPCService {
@@ -123,7 +122,8 @@
// xpc_connection_create() is incorrect or we (this process) have
// canceled the service; we can do any cleanup of appliation
// state at this point.
xpc_release(connection);
xpc_connection_cancel(delegateConnection);
xpc_release(delegateConnection);
}
}
});