diff options
author | Michael Cummings <mcumming@microsoft.com> | 2019-08-26 21:37:30 +0300 |
---|---|---|
committer | Michael Cummings <mcumming@microsoft.com> | 2019-08-26 21:38:44 +0300 |
commit | 572f473327f676629544c9a9abb7ee645ec1c360 (patch) | |
tree | 3c19ae2dff8317fdfd88eedd016128715d7c3378 /Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs | |
parent | 4def77d0cfcb98d43c8bf79b9c9a4502cee1b596 (diff) |
Call Destroy on Gtk objects
Diffstat (limited to 'Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs')
-rw-r--r-- | Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs index a2b1949e..ede03201 100644 --- a/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs +++ b/Xwt.Gtk/Xwt.GtkBackend/ButtonBackend.cs @@ -316,6 +316,7 @@ namespace Xwt.GtkBackend if (disposing && labelWidget != null) { labelWidget.Realized -= HandleStyleUpdate; labelWidget.StyleSet -= HandleStyleUpdate; + labelWidget.Destroy (); labelWidget = null; } base.Dispose (disposing); |