Changeset 1315

Show
Ignore:
Timestamp:
05/23/04 05:14:22 (5 years ago)
Author:
morris
Message:

fix some memory issues

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • WiredClient/trunk/NSTextFieldCellAdditions.m

    r1167 r1315  
    1 /* $Id: NSTextFieldCellAdditions.m,v 1.3 2004/05/16 03:29:09 morris Exp $ */ 
     1/* $Id: NSTextFieldCellAdditions.m,v 1.4 2004/05/23 03:14:22 morris Exp $ */ 
    22 
    33/* 
     
    4949                style, NSParagraphStyleAttributeName, 
    5050                NULL]; 
     51        [style release]; 
    5152 
    5253        // --- add extra attributes 
     
    5859        [self setAttributedStringValue:attributed]; 
    5960        [attributed release]; 
    60          
    61         [style release]; 
    6261} 
    6362 
  • WiredClient/trunk/WCConnection.m

    r1302 r1315  
    1 /* $Id: WCConnection.m,v 1.12 2004/05/22 08:06:59 morris Exp $ */ 
     1/* $Id: WCConnection.m,v 1.13 2004/05/23 03:14:22 morris Exp $ */ 
    22 
    33/* 
     
    853853        // --- log to console 
    854854        [_console print:[NSString stringWithFormat:@"%d %@\n", message, argument] color:color]; 
     855        [string release]; 
    855856} 
    856857 
  • WiredClient/trunk/WCSecureSocket.m

    r1298 r1315  
    1 /* $Id: WCSecureSocket.m,v 1.8 2004/05/22 02:18:09 morris Exp $ */ 
     1/* $Id: WCSecureSocket.m,v 1.9 2004/05/23 03:14:22 morris Exp $ */ 
    22 
    33/* 
     
    130130 
    131131- (void)readInBackgroundAndNotify { 
     132        NSAutoreleasePool   *pool; 
    132133        NSData                          *data; 
    133134        struct timeval          tv; 
     
    190191                        buffer[buffer_offset + bytes - 1] = '\0'; 
    191192                         
    192                         // --- create data 
    193                         data = [NSData dataWithBytes:buffer length:buffer_offset + bytes]; 
    194                          
    195                         // --- announce 
     193                        // --- announce data 
     194                        pool = [[NSAutoreleasePool alloc] init]; 
     195                        data = [[NSData alloc] initWithBytes:buffer length:buffer_offset + bytes]; 
    196196                        [_connection receiveData:data]; 
     197                        [data release]; 
     198                        [pool release]; 
    197199                         
    198200                        // --- reset