mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #604] Memory leak in OAuthSwift: Observer is not cleared out #392
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#392
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vgritsenko on GitHub (Jun 16, 2020).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/604
Description:
There is a memory leak in OAuthSwift. Observer which is registered with notification center in
observeCallback(_:)is saved toself.observerproperty, and when this observer is removed later inremoveCallbackNotificationObserver(), theself.observeris never cleared out, keeping observation block in memory, thus keeping theblockpassed in as an argument toobserveCallbackin memory, and everything that block refers to.OAuth Provider? (Twitter, Github, ..):
Facebook, Google, any other.
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.4 (Swift 5.2)
11.x (Swift 5.1)
10.x (Swift 5.0)
other: (Please fill in the version you are using.)
objective c