summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-19 17:37:35 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-19 18:15:50 +0100
commit5c36882d3a1965f3dcc846f81100b368049a99b0 (patch)
tree38e1cb6772fdc6d7b8f28b3cae7bd00c9752179b /sc
parentd8239d0b03a0225d593f2ac06727975a17515809 (diff)
CID#1157754: fix memory leak
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/documentstreamaccess.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/inc/documentstreamaccess.hxx b/sc/inc/documentstreamaccess.hxx
index 9fa2d78a491e..eda2c8def877 100644
--- a/sc/inc/documentstreamaccess.hxx
+++ b/sc/inc/documentstreamaccess.hxx
@@ -11,6 +11,7 @@
#define SC_DOCUMENTSTREAMACCESS_HXX
#include <rtl/ustring.hxx>
+#include <boost/scoped_ptr.hpp>
class ScDocument;
class ScAddress;
@@ -26,7 +27,7 @@ struct DocumentStreamAccessImpl;
*/
class DocumentStreamAccess
{
- DocumentStreamAccessImpl* mpImpl;
+ boost::scoped_ptr<DocumentStreamAccessImpl> mpImpl;
DocumentStreamAccess();