Yuck -- [TCPConnection initToBonjourService:] was releasing the wrong object, the BonjourService, causing it to dealloc and eventually crash. Fixes #10.
authorJens Alfke <jens@mooseyard.com>
Sat May 16 14:24:06 2009 -0700 (2009-05-16)
changeset 482b4ad2067074
parent 47 60f2b46d9a3b
child 49 20cccc7c26ee
Yuck -- [TCPConnection initToBonjourService:] was releasing the wrong object, the BonjourService, causing it to dealloc and eventually crash. Fixes #10.
TCP/TCPConnection.m
     1.1 --- a/TCP/TCPConnection.m	Sat May 16 14:10:15 2009 -0700
     1.2 +++ b/TCP/TCPConnection.m	Sat May 16 14:24:06 2009 -0700
     1.3 @@ -107,7 +107,7 @@
     1.4      NSNetService *netService = [[NSNetService alloc] initWithDomain: service.domain
     1.5                                                                 type: service.type name: service.name];
     1.6      self = [self initToNetService: netService];
     1.7 -    [service release];
     1.8 +    [netService release];
     1.9      return self;
    1.10  }
    1.11