Permalink
Browse files

Fixing leak

  • Loading branch information...
1 parent c50b83e commit 046b90520b327194a377f2ba1eeb0e5a292a68b3 @gabriel gabriel committed May 17, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 Classes/GHAsyncTestCase.m
View
@@ -174,12 +174,12 @@ - (void)notify:(NSInteger)status forSelector:(SEL)selector {
// Make sure the notify is for the currently waiting test
if (selector != NULL && !sel_isEqual(waitSelector_, selector)) {
NSLog(@"Warning: Notified from %@ but we were waiting for %@", NSStringFromSelector(selector), NSStringFromSelector(waitSelector_));
- return;
- }
+ } else {
+ [lock_ lock];
+ notifiedStatus_ = status;
+ [lock_ unlock];
+ }
- [lock_ lock];
- notifiedStatus_ = status;
- [lock_ unlock];
[pool release];
}

0 comments on commit 046b905

Please sign in to comment.