Skip to content

Commit

Permalink
Merge pull request #5987 from ShadowsInRain/fixes/StreamNode-memory-leak
Browse files Browse the repository at this point in the history
Fix a memory leak in StreamNode.
  • Loading branch information
grokys authored and danwalmsley committed Jun 4, 2021
1 parent 89fc0ee commit 9da1039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Avalonia.Base/Data/Core/StreamNode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public StreamNode(IStreamPlugin customPlugin)

protected override void StartListeningCore(WeakReference<object> reference)
{
GetPlugin(reference)?.Start(reference).Subscribe(ValueChanged);
_subscription = GetPlugin(reference)?.Start(reference).Subscribe(ValueChanged);
}

protected override void StopListeningCore()
Expand Down

0 comments on commit 9da1039

Please sign in to comment.