r9173: catch ep->local being NULL
authorAndrew Tridgell <tridge@samba.org>
Sun, 7 Aug 2005 06:16:32 +0000 (06:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:31:28 +0000 (13:31 -0500)
(This used to be commit 9f75bc3ca061abbfeb6ac9fc60834b8c1f6e2c4d)

source4/lib/appweb/ejs/ejsLib.c

index eed6d67fb42025744e1898b06483466a4d91d34c..b24b2b013ce378249614ec0b01b11cd2f041cf57 100644 (file)
@@ -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");