summaryrefslogtreecommitdiff
path: root/source4/lib/appweb/ejs/ejsLib.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/appweb/ejs/ejsLib.c')
-rw-r--r--source4/lib/appweb/ejs/ejsLib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/lib/appweb/ejs/ejsLib.c b/source4/lib/appweb/ejs/ejsLib.c
index eed6d67fb4..b24b2b013c 100644
--- a/source4/lib/appweb/ejs/ejsLib.c
+++ b/source4/lib/appweb/ejs/ejsLib.c
@@ -211,7 +211,9 @@ void ejsCloseEngine(EjsId eid)
mprDestroyVar(&ep->result);
mprDestroyVar(&ep->tokenNumber);
- mprDeleteProperty(ep->local, "local");
+ if (ep->local) {
+ mprDeleteProperty(ep->local, "local");
+ }
mprDeleteProperty(ep->global, "this");
mprDeleteProperty(ep->global, "global");