Bug? responseWithError: method of OHHTTPStubsResponse class #6

Closed
yamaya opened this Issue Nov 8, 2012 · 1 comment

Comments

Projects
None yet
2 participants

yamaya commented Nov 8, 2012

+(OHHTTPStubsResponse*)responseWithError:(NSError*)error
{
    OHHTTPStubsResponse* response = [[self  alloc] initWithError:error];
#if ! __has_feature(objc_arc)
    [response release]; <------------ Why?
#endif
    return response;
}

You should use "autorelease" instead of "release"?

Owner

AliSoftware commented Nov 8, 2012

Good catch! Yes indeed this should be autorelease, thanks.

AliSoftware added a commit that referenced this issue Nov 8, 2012

@AliSoftware AliSoftware closed this Nov 8, 2012

AliSoftware added a commit that referenced this issue Nov 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment