Browse Source
[MacOS] fix small memory leak. base.Dispose so that _nativeControlHost and _mouse are disposed correctly. (#17783)
pull/17812/head
Dan Walmsley
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
src/Avalonia.Native/WindowImplBase.cs
|
|
|
@ -78,8 +78,7 @@ namespace Avalonia.Native |
|
|
|
public override void Dispose() |
|
|
|
{ |
|
|
|
Native?.Close(); |
|
|
|
Native?.Dispose(); |
|
|
|
_handle = null; |
|
|
|
base.Dispose(); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual void Show(bool activate, bool isDialog) |
|
|
|
|