From f13fbd7e6fcdf8fe6de2d9be2fd453fe22fc5e16 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 7 Aug 2005 06:16:32 +0000 Subject: r9173: catch ep->local being NULL (This used to be commit 9f75bc3ca061abbfeb6ac9fc60834b8c1f6e2c4d) --- source4/lib/appweb/ejs/ejsLib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/lib/appweb') 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"); -- cgit