You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in this case m_event_revoker won't go out of scope until the class is deleted. The class won't be deleted until all references go to zero. And references won't go to zero until the event handler has been revoked. So shouldn't this result in a circular reference and memory leak? Or maybe I'm missing something.
Reproducible example
No response
Expected behavior
No response
Actual behavior
No response
Additional comments
No response
The text was updated successfully, but these errors were encountered:
Version
No response
Summary
This isn't a bug. Just a question. According to the docs, an auto event revoker will revoke when it goes out of scope. The docs provide this example:
But in this case
m_event_revoker
won't go out of scope until the class is deleted. The class won't be deleted until all references go to zero. And references won't go to zero until the event handler has been revoked. So shouldn't this result in a circular reference and memory leak? Or maybe I'm missing something.Reproducible example
No response
Expected behavior
No response
Actual behavior
No response
Additional comments
No response
The text was updated successfully, but these errors were encountered: