summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/tubes/manager.hxx2
-rw-r--r--tubes/source/manager.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/tubes/manager.hxx b/include/tubes/manager.hxx
index 2ea14fce3888..063cf975e587 100644
--- a/include/tubes/manager.hxx
+++ b/include/tubes/manager.hxx
@@ -145,7 +145,7 @@ public:
TUBES_DLLPUBLIC static void addSuffixToNames( const char* pName );
private:
- static TeleManagerImpl* pImpl;
+ static std::unique_ptr<TeleManagerImpl> pImpl;
static ::osl::Mutex& GetMutex();
};
diff --git a/tubes/source/manager.cxx b/tubes/source/manager.cxx
index a742e2811491..08dacfb3ed58 100644
--- a/tubes/source/manager.cxx
+++ b/tubes/source/manager.cxx
@@ -436,7 +436,7 @@ bool TeleManager::init( bool bListen )
void TeleManager::finalize()
{
- delete pImpl;
+ pImpl.reset();
}
bool TeleManager::createAccountManager()