Call -[NSInvocation retainArguments] in ThreadSafeDelegate.
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 20 Jun 2013 02:16:59 +0000 (22:16 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 20 Jun 2013 02:16:59 +0000 (22:16 -0400)
Source/ThreadSafeDeleage.m

index dc340df3d7dcfa965b9166bcf28c5ec97251574f..4c0493fac412b55bdd9dca5ca7f257de64c89dbd 100644 (file)
@@ -70,6 +70,7 @@
 
 - (void)forwardInvocation:(NSInvocation*)invocation {
   if ([_object respondsToSelector:[invocation selector]]) {
+    [invocation retainArguments];
     [self performSelector:@selector(dispatchInvocation:)
                  onThread:_thread
                withObject:invocation