Browse Source
Merge pull request #7163 from AvaloniaUI/fixes/7158-dispose-x11-transparency-helper
[X11] Dispose transparency helper
pull/7167/head
Dan Walmsley
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
src/Avalonia.X11/X11Window.cs
|
|
|
@ -785,6 +785,12 @@ namespace Avalonia.X11 |
|
|
|
|
|
|
|
void Cleanup() |
|
|
|
{ |
|
|
|
if (_transparencyHelper != null) |
|
|
|
{ |
|
|
|
_transparencyHelper.Dispose(); |
|
|
|
_transparencyHelper = null; |
|
|
|
} |
|
|
|
|
|
|
|
if (_imeControl != null) |
|
|
|
{ |
|
|
|
_imeControl.Dispose(); |
|
|
|
|