diff --git a/Nasal/canvas/gui.nas b/Nasal/canvas/gui.nas index f182f2c40..bc23a9554 100644 --- a/Nasal/canvas/gui.nas +++ b/Nasal/canvas/gui.nas @@ -109,9 +109,10 @@ var Window = { me._canvas.del(); me._canvas = nil; } - - me._node.remove(); - me._node = nil; + if (me._node != nil) { + me._node.remove(); + me._node = nil; + } }, setTitle: func(title) {