You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is the assignment of state to an alloc that never gets released (the property is assign, not retain). If I use state = [SBJsonStreamWriterStateStart sharedInstance]; instead, the leak goes away. With some fair amount of unit testing I haven't seen any side effect.
In light of issue #79, perhaps the fix for the __weak state property could address this as well?
The text was updated successfully, but these errors were encountered:
In the current implementation of SBJsonStreamWriter, there is a leak that stems from the
init
method.The problem is the assignment of
state
to an alloc that never gets released (the property is assign, not retain). If I usestate = [SBJsonStreamWriterStateStart sharedInstance];
instead, the leak goes away. With some fair amount of unit testing I haven't seen any side effect.In light of issue #79, perhaps the fix for the
__weak
state property could address this as well?The text was updated successfully, but these errors were encountered: