Changeset 3732

Show
Ignore:
Timestamp:
09/14/07 01:43:38 (1 year ago)
Author:
timothy
Message:

Prevent copying bytes for this NSData.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Chat Core/MVSILCChatConnection.m

    r3731 r3732  
    12821282        if( identifier ) { 
    12831283                unsigned length = silc_id_get_len( channel -> id, SILC_ID_CHANNEL ); 
    1284                 NSData *uniqueIdentifier = [[NSData allocWithZone:nil] initWithBytes:identifier length:length]; 
     1284                NSData *uniqueIdentifier = [[NSData allocWithZone:nil] initWithBytesNoCopy:identifier length:length freeWhenDone:NO]; 
    12851285                room = [self joinedChatRoomWithUniqueIdentifier:uniqueIdentifier]; 
    12861286                [uniqueIdentifier release];