1.1 --- a/IPAddress.m Wed Apr 29 13:57:10 2009 -0700
1.2 +++ b/IPAddress.m Tue May 05 14:46:42 2009 -0700
1.3 @@ -282,7 +282,7 @@
1.4
1.5 - (NSString*) description
1.6 {
1.7 - NSMutableString *desc = [_hostname mutableCopy];
1.8 + NSMutableString *desc = [[_hostname mutableCopy] autorelease];
1.9 NSString *addr = self.ipv4name;
1.10 if (addr)
1.11 [desc appendFormat: @"(%@)", addr];
1.12 @@ -385,6 +385,7 @@
1.13 CAssertEqual(addr.hostname,@"10.0.1.254");
1.14 CAssertEqual(addr.description,@"10.0.1.254:8080");
1.15 CAssert(addr.isPrivate);
1.16 + [addr release];
1.17
1.18 addr = [[IPAddress alloc] initWithHostname: @"66.66.0.255" port: 123];
1.19 CAssertEq(addr.class,[IPAddress class]);
1.20 @@ -393,7 +394,8 @@
1.21 CAssertEqual(addr.hostname,@"66.66.0.255");
1.22 CAssertEqual(addr.description,@"66.66.0.255:123");
1.23 CAssert(!addr.isPrivate);
1.24 -
1.25 + [addr release];
1.26 +
1.27 addr = [[IPAddress alloc] initWithHostname: @"www.apple.com" port: 80];
1.28 CAssertEq(addr.class,[HostAddress class]);
1.29 Log(@"www.apple.com = %@ [0x%08X]", addr.ipv4name, ntohl(addr.ipv4));
1.30 @@ -402,6 +404,7 @@
1.31 CAssertEqual(addr.hostname,@"www.apple.com");
1.32 CAssertEqual(addr.description,@"www.apple.com:80");
1.33 CAssert(!addr.isPrivate);
1.34 + [addr release];
1.35 }
1.36
1.37