Skip to content

Commit 064d37d

Browse files
committed
Kill memory leak. Patch by DinosaurDad. Fixes SBJson#80.
1 parent e3c707b commit 064d37d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/SBJsonStreamWriter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ - (id)init {
6969
if (self) {
7070
maxDepth = 32u;
7171
stateStack = [[NSMutableArray alloc] initWithCapacity:maxDepth];
72-
state = [[SBJsonStreamWriterStateStart alloc] init];
72+
state = [SBJsonStreamWriterStateStart sharedInstance];
7373
}
7474
return self;
7575
}

0 commit comments

Comments
 (0)