Permalink
Browse files

stop leaking exception reason in CDRSpecFailure

  • Loading branch information...
cppforlife committed Feb 17, 2013
1 parent 314c459 commit bc1c263dfe82978016419f747fd1520c5f2705f5
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/CDRSpecFailure.m
View
@@ -41,7 +41,7 @@ - (id)initWithRaisedObject:(NSObject *)object {
NSString *reason = nil;
[[self class] extractReason:&reason fileName:&fileName lineNumber:&lineNumber fromObject:object];
- if ((self = [super initWithName:@"Spec Failure" reason:[reason retain] userInfo:nil])) {
+ if ((self = [super initWithName:@"Spec Failure" reason:reason userInfo:nil])) {
fileName_ = [fileName retain];
lineNumber_ = lineNumber;
}

0 comments on commit bc1c263

Please sign in to comment.