Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@xamarin.com>2016-09-21 17:52:32 +0300
committerAlan McGovern <alan.mcgovern@gmail.com>2017-01-05 21:00:14 +0300
commit4228e6071832ce2d74e63091e025ad895a418ce8 (patch)
tree6da0e83738f05585cd0dff26052fa4ca1b14c330
parent9ee2853a1f3d3afeb9bd35044ba44433036cddb0 (diff)
Fix NRE when disposing empty windowcycle8
-rw-r--r--Xwt/Xwt/Window.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xwt/Xwt/Window.cs b/Xwt/Xwt/Window.cs
index 5a6b70bb..bb1dbbce 100644
--- a/Xwt/Xwt/Window.cs
+++ b/Xwt/Xwt/Window.cs
@@ -133,7 +133,8 @@ namespace Xwt
protected override void Dispose (bool disposing)
{
- Content.Dispose ();
+ if (Content != null)
+ Content.Dispose ();
base.Dispose (disposing);
}