MegaBits / SIOSocket

Realtime iOS application framework (client) http://socket.io
MIT License
494 stars 80 forks source link

Memory leak #33

Closed andrew-frank closed 9 years ago

andrew-frank commented 9 years ago

Hey, I found a memory problem. I think I've had this problem since earlier versions, because I noticed that dealloc wasn't called on my View Controller, but I couldn't make instruments to work properly. I finally managed to launch them with iOS 7 device and got following results.

leak2

leak

screen shot 2014-12-23 at 20 14 07

screen shot 2014-12-23 at 20 16 09

screen shot 2014-12-23 at 20 16 15

andrew-frank commented 9 years ago

Omg, there is a new -(void)close; method now (well since 0.0.3 but I didn't notice it, although I was searching for such method some time ago) which addressed the issue!

Same leaks are detected by instruments, but after a while my VC gets deallocated. I hope it will help someone.

Merry Christmas!