Fixed a memory leak by adding a -dealloc method to HostAddress. (Thanks to Mark Onyschuk)
authorJens Alfke <jens@mooseyard.com>
Tue Jul 15 09:37:15 2008 -0700 (2008-07-15)
changeset 24ab88e3ee5726
parent 23 ffdaa33a408a
child 25 a4875607a3a0
Fixed a memory leak by adding a -dealloc method to HostAddress. (Thanks to Mark Onyschuk)
IPAddress.m
     1.1 --- a/IPAddress.m	Sun Jul 13 10:59:06 2008 -0700
     1.2 +++ b/IPAddress.m	Tue Jul 15 09:37:15 2008 -0700
     1.3 @@ -244,6 +244,13 @@
     1.4      return self;
     1.5  }
     1.6  
     1.7 +- (void)dealloc 
     1.8 +{
     1.9 +    [_hostname release];
    1.10 +    [super dealloc];
    1.11 +}
    1.12 +
    1.13 +
    1.14  - (NSUInteger) hash
    1.15  {
    1.16      return [_hostname hash] ^ _port;