summaryrefslogtreecommitdiffstats
path: root/desktop/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2011-09-09 14:41:53 +0200
committerStephan Bergmann <sbergman@redhat.com>2011-09-09 17:46:37 +0200
commit1d38dbab29245e430792f7b3a4c14c94cd011504 (patch)
tree8a4d711e750675ec34e010be6e62a2313f1d6590 /desktop/inc
parentsb140: #i117082# avoid unncessary static class data members (which are destro... (diff)
downloadcore-1d38dbab29245e430792f7b3a4c14c94cd011504.tar.gz
core-1d38dbab29245e430792f7b3a4c14c94cd011504.zip
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.hxx3
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;