diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/singleton.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/singleton.h b/common/singleton.h index 56039afb37..849bf208bb 100644 --- a/common/singleton.h +++ b/common/singleton.h @@ -71,6 +71,10 @@ public: _singleton = T::makeInstance(); return *_singleton; } + virtual void destroy() { + delete _singleton; + _singleton = 0; + } protected: Singleton<T>() { } #ifdef __SYMBIAN32__ |