Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2015, 2:50:04 PM (9 years ago)
Author:
landauf
Message:

create and destroy root-context in a controlled manner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/object/Context.cc

    r10539 r10543  
    7676    /*static*/ void Context::setRootContext(Context* context)
    7777    {
    78         if (Context::rootContext_s)
    79             delete Context::rootContext_s;
    8078        Context::rootContext_s = context;
    8179    }
     
    8381    /*static*/ Context* Context::getRootContext()
    8482    {
    85         if (!Context::rootContext_s)
    86             Context::rootContext_s = new Context(NULL);
     83        OrxVerify(Context::rootContext_s != NULL, "Root Context is undefined");
    8784        return Context::rootContext_s;
    8885    }
Note: See TracChangeset for help on using the changeset viewer.