Skip to content

Commit

Permalink
Swap order of _inner and identity cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jumhyn-browser authored Jun 7, 2024
1 parent ce11bb3 commit c4fc562
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions swiftwinrt/Resources/Support/WinRTProtocols.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ open class WinRTClass : CustomQueryInterface, Equatable {
}

deinit {
// ensure we release the identity pointer before releasing _inner. releasing the _inner
// ensure we release the _inner pointer before releasing identity. releasing the _inner
// cleans up the underlying COM object.
identity = nil
_inner = nil
identity = nil
}
}

Expand Down

0 comments on commit c4fc562

Please sign in to comment.