pkyeck/socket.IO-objc — pull request #7 by spesholized (2012-02-03 20:02:12+00:00)
Title: pre-mature dealloc

Under -setTimeout, self gets dealloc'd when [_timeout invalidate] gets called. Subsequently the line after that, [_timeout release] will cause a crash because of over releasing.

This happens when we release the SocketIO object gets released before -onDisconnect gets called. In that case _timeout is the only object retaining the SocketIO object.

Perhaps you have a better fix, but this seems to work for me.