diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-09-09 14:41:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-09-09 17:46:37 +0200 |
commit | 1d38dbab29245e430792f7b3a4c14c94cd011504 (patch) | |
tree | 8a4d711e750675ec34e010be6e62a2313f1d6590 /desktop/inc | |
parent | 21d97438e2944861e26e4984195f959a0cce1e41 (diff) |
sb140: #i117084# do not leak Lockfile instance
plus improvements based on a14010cb8c485ee1d07530d34a00f03db3233e02 "valgrind: fix leak"
Diffstat (limited to 'desktop/inc')
-rw-r--r-- | desktop/inc/app.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/inc/app.hxx b/desktop/inc/app.hxx index f4b00f53fc35..10f6de9dc7c3 100644 --- a/desktop/inc/app.hxx +++ b/desktop/inc/app.hxx @@ -31,6 +31,7 @@ // stl includes first #include <map> +#include <memory> #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <vcl/svapp.hxx> #include <vcl/timer.hxx> @@ -205,7 +206,7 @@ class Desktop : public Application BootstrapError m_aBootstrapError; BootstrapStatus m_aBootstrapStatus; - Lockfile *m_pLockfile; + std::auto_ptr< Lockfile > m_pLockfile; Timer m_firstRunTimer; static ResMgr* pResMgr; |