mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #522] authorizeURLHandler is not weak, prevents view controller from being deallocated #344
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#344
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 @miktav on GitHub (Mar 8, 2019).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/522
Once I set OAuth2Swift authorizeURLHandler to my view controller, my view controller is never getting deallocated.
I believe this is happening because authorizeURLHandler is not declared as weak:
open var authorizeURLHandler: OAuthSwiftURLHandlerType
My view controller's deinit is never called.
@phimage commented on GitHub (Jun 10, 2019):
possible workaround
oauthswift object as week in controller
or restore default authorizeURLHandler
@phimage commented on GitHub (Jun 10, 2019):
I will propose a new solution in next version with explicit code to make weak
Because make weak for everybody could create some bugs like #526
@phimage commented on GitHub (Jun 10, 2019):
The solution to make weak by code
This will a proxy with weak reference