Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

destroy objects before deleting identifiers (when unloading a module)

Location:
code/branches/core7/src/libraries/core/object
Files:
2 edited

Legend:

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

    r9667 r10539  
    9797        return this->objectLists_[classID];
    9898    }
     99
     100    void Context::destroyObjectList(const Identifier* identifier)
     101    {
     102        ObjectListBase* objectList = this->getObjectList(identifier);
     103        delete objectList;
     104        this->objectLists_[identifier->getClassID()] = NULL;
     105    }
    99106}
  • code/branches/core7/src/libraries/core/object/Context.h

    r9667 r10539  
    7171            }
    7272
     73            void destroyObjectList(const Identifier* identifier);
     74
    7375        private:
    7476            Context* parentContext_;
Note: See TracChangeset for help on using the changeset viewer.