-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
- Platform: iOS x86 Simulator
- OS Version: 13.3
- Issue Detail
classHTTPin AcceptSDK does not deallocate aftergetTokenWithRequestcompleted
-
Steps to Reproduce
callgetTokenWithRequest -
Reason
In this line, classHTTPhas been set as URLSession's delegate, and URLSessionDelegate is a strong reference property, not weak reference -
Solution
Aftertaskhas finished, making URLSession invalidate will remove the reference toHTTP.
session.finishTasksAndInvalidate()
Add the above code after semaphore.wait
Metadata
Metadata
Assignees
Labels
No labels
