Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2015, 3:24:55 PM (9 years ago)
Author:
landauf
Message:

fixed tests

Location:
code/branches/core7/src/libraries/core
Files:
3 edited

Legend:

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

    r10543 r10544  
    255255        if (this->staticInitHandler_)
    256256            StaticInitializationManager::getInstance().removeHandler(this->staticInitHandler_);
    257         delete Context::getRootContext();
    258         Context::setRootContext(NULL);
     257        Context::destroyRootContext();
    259258        safeObjectDelete(&rootModule_);
    260259        safeObjectDelete(&staticInitHandler_);
  • code/branches/core7/src/libraries/core/object/Context.cc

    r10543 r10544  
    7979    }
    8080
     81    /*static*/ void Context::destroyRootContext()
     82    {
     83        delete Context::rootContext_s;
     84        Context::rootContext_s = NULL;
     85    }
     86
    8187    /*static*/ Context* Context::getRootContext()
    8288    {
  • code/branches/core7/src/libraries/core/object/Context.h

    r10539 r10544  
    4747        public:
    4848            static void setRootContext(Context* context);
     49            static void destroyRootContext();
    4950            static Context* getRootContext();
    5051
Note: See TracChangeset for help on using the changeset viewer.