aboutsummaryrefslogtreecommitdiff
path: root/Foundation/GTMNSAppleScript+Handler.m
diff options
context:
space:
mode:
authorGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-02-26 01:40:31 +0000
committerGravatar thomasvl@gmail.com <thomasvl@gmail.com@7dc7ac4e-7543-0410-b95c-c1676fc8e2a3>2009-02-26 01:40:31 +0000
commit9b74a6ca6ad37670290665770b1bb257f75f8895 (patch)
treeee096fb71c24a062a67210a78b8adc70cf1cf5fb /Foundation/GTMNSAppleScript+Handler.m
parent33124271638349be8261dd63a6402bcb32289815 (diff)
Update so unittest for GC and 10.5.6 (since they system flakes under those GC in
those cases) redo the mutableCopy pattern to avoid leaks.
Diffstat (limited to 'Foundation/GTMNSAppleScript+Handler.m')
-rw-r--r--Foundation/GTMNSAppleScript+Handler.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Foundation/GTMNSAppleScript+Handler.m b/Foundation/GTMNSAppleScript+Handler.m
index be4a2dc..8c23649 100644
--- a/Foundation/GTMNSAppleScript+Handler.m
+++ b/Foundation/GTMNSAppleScript+Handler.m
@@ -265,7 +265,7 @@ GTM_METHOD_CHECK(NSAppleEventDescriptor, gtm_registerSelector:forTypes:count:);
- (void)forwardInvocation:(NSInvocation *)invocation {
SEL sel = [invocation selector];
NSMutableString *handlerName
- = [[NSStringFromSelector(sel) mutableCopy] autorelease];
+ = [NSMutableString stringWithString:NSStringFromSelector(sel)];
NSUInteger handlerOrigLength = [handlerName length];
[handlerName replaceOccurrencesOfString:@":"
withString:@""