Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instruments picking up memory leak in SBJsonStreamParser.m #82

Closed
greymeister opened this issue Jun 29, 2011 · 2 comments
Closed

Instruments picking up memory leak in SBJsonStreamParser.m #82

greymeister opened this issue Jun 29, 2011 · 2 comments

Comments

@greymeister
Copy link

Line 54 seems to be causing instruments to detect a memory leak, context:

- (id)init {
    self = [super init];
    if (self) {
        maxDepth = 32u;

        stateStack = [[NSMutableArray alloc] initWithCapacity:maxDepth];

        state = [SBJsonStreamParserStateStart sharedInstance];             // THIS LINE

        tokeniser = [[SBJsonTokeniser alloc] init];

    }
    return self;
}
@stig
Copy link
Collaborator

stig commented Jun 30, 2011

I don't see this. It's a singleton - there shouldn't be any leaks there.

@stig
Copy link
Collaborator

stig commented Oct 27, 2011

Now using ARC, so hopefully this should be moot.

@stig stig closed this as completed Oct 27, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants