We use URLSessionWebSocketTask in our app, whenever we call disconnect which triggers cancel method on URLSessionWebSocketTask, it triggers memory leaks. I used memory graph inside Xcode to find the memory leaks.
I created an example project to show the memory leaks. Please see FB7729600 for details.
I had lab time with Apple developer this morning but we were running out of time. I tried the approach suggested to avoid use self inside addListener, replace it with static property. I still see memory leak.
Any suggestion is welcome!
I created an example project to show the memory leaks. Please see FB7729600 for details.
I had lab time with Apple developer this morning but we were running out of time. I tried the approach suggested to avoid use self inside addListener, replace it with static property. I still see memory leak.
Any suggestion is welcome!