Skip to content

Fix memory leak in ObservePropertyChanged - #381

Open
jjtParadox wants to merge 1 commit into
Cysharp:mainfrom
jjtParadox:patch-1
Open

Fix memory leak in ObservePropertyChanged#381
jjtParadox wants to merge 1 commit into
Cysharp:mainfrom
jjtParadox:patch-1

Conversation

@jjtParadox

Copy link
Copy Markdown

The Dispose() method in the ObservePropertyChanged subscription manager was doing value.PropertyChanging -= eventHandler right after null had been exchanged into eventHandler.

Because of this, it was never disconnecting from the PropertyChanged event, causing a memory leak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant