p2 / OAuth2

OAuth2 framework for macOS and iOS, written in Swift.
Other
1.14k stars 276 forks source link

Fixed a memory leak related to authorizeContext #329

Closed PWrzesinski closed 4 years ago

PWrzesinski commented 4 years ago

Changed autorizeContext var to weak in order to prevent a reference cycle: NSWindow holding an OAuth2CodeGrant and at the same time being provided as it's authorizeContext (authConfig.authorizeContext).