Skip to content

Commit

Permalink
[MacOS] fix small memory leak. base.Dispose so that _nativeControlHos…
Browse files Browse the repository at this point in the history
…t and _mouse are disposed correctly. (#17783)
  • Loading branch information
danwalmsley authored and maxkatz6 committed Dec 19, 2024
1 parent 9ad2ad6 commit f29675d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Avalonia.Native/WindowImplBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ public override void SetFrameThemeVariant(PlatformThemeVariant themeVariant)
public override void Dispose()
{
Native?.Close();
Native?.Dispose();
_handle = null;
base.Dispose();
}

public virtual void Show(bool activate, bool isDialog)
Expand Down

0 comments on commit f29675d

Please sign in to comment.