Changeset 3630

Show
Ignore:
Timestamp:
03/18/07 18:59:29 (2 years ago)
Author:
hennk
Message:

Fixed a memory leak and incorrect method signature in previous commit.

Files:

Legend:

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

    r3629 r3630  
    21142114        NSMutableData *topic = [[topicInfo objectForKey:@"topic"] mutableCopyWithZone:nil]; 
    21152115         
    2116         NSMethodSignature *signature = [NSMethodSignature methodSignatureWithReturnAndArgumentTypes:@encode( void ), @encode( NSMutableData * ), @encode( MVChatRoom * ), @encode( MVChatUser ), nil]; 
     2116        NSMethodSignature *signature = [NSMethodSignature methodSignatureWithReturnAndArgumentTypes:@encode( void ), @encode( NSMutableData * ), @encode( MVChatRoom * ), @encode( MVChatUser * ), nil]; 
    21172117        NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature]; 
    21182118        [invocation setSelector:@selector( processTopicAsData:inRoom:author: )]; 
     
    21272127        [room _setTopicDate:[NSDate date]]; 
    21282128        [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadWithName:MVChatRoomTopicChangedNotification object:room userInfo:nil]; 
     2129         
     2130        [topic release]; 
    21292131} 
    21302132