Skip to content

Commit f29675d

Browse files
danwalmsleymaxkatz6
authored andcommitted
[MacOS] fix small memory leak. base.Dispose so that _nativeControlHost and _mouse are disposed correctly. (#17783)
1 parent 9ad2ad6 commit f29675d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Avalonia.Native/WindowImplBase.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ public override void SetFrameThemeVariant(PlatformThemeVariant themeVariant)
7878
public override void Dispose()
7979
{
8080
Native?.Close();
81-
Native?.Dispose();
82-
_handle = null;
81+
base.Dispose();
8382
}
8483

8584
public virtual void Show(bool activate, bool isDialog)

0 commit comments

Comments
 (0)