Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10528 for code


Ignore:
Timestamp:
Jun 6, 2015, 12:37:27 PM (9 years ago)
Author:
landauf
Message:

destroy singleton when wrapper is destroyed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/singleton/ScopedSingletonWrapper.h

    r10514 r10528  
    9797        ~ClassScopedSingletonWrapper()
    9898        {
     99            if (singletonPtr_)
     100                this->destroy(singletonPtr_);
    99101        }
    100102
     
    150152        ~ClassScopedSingletonWrapper()
    151153        {
     154            if (singletonPtr_)
     155                this->destroy(singletonPtr_);
    152156        }
    153157
Note: See TracChangeset for help on using the changeset viewer.