summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorJian Fang Zhang <zhangjf@apache.org>2012-09-03 01:52:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-09 20:39:07 +0000
commitacb8d9f6d1bcc95c48a27252274c44d8ff534376 (patch)
treed2aa4f69da59e3e9440f85e65a9bd2bbaf4afd27 /xmloff
parentd2f57b6c1275e0e6ed7f214d471ddb84ecb1b4ad (diff)
Resolves: #i120663# The SvXMLImportContext is always leaked
The slave SvXMLImportContext object for SdXMLNumberFormatMemberImportContext is always leaked Found by: zhangjf Patch by: zhangjf (cherry picked from commit e440770de29e96ce3e45792c0e94f133ade83680) Change-Id: Ic0585bbb8e0e315548586ea1e49f55d0cc7ed2c4
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/XMLNumberStyles.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmloff/source/draw/XMLNumberStyles.cxx b/xmloff/source/draw/XMLNumberStyles.cxx
index 15346ca0a98e..44d40d233011 100644
--- a/xmloff/source/draw/XMLNumberStyles.cxx
+++ b/xmloff/source/draw/XMLNumberStyles.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <boost/shared_ptr.hpp>
#include <tools/debug.hxx>
#include <XMLNumberStylesExport.hxx>
#include <XMLNumberStylesImport.hxx>
@@ -493,7 +494,7 @@ private:
sal_Bool mbTextual;
sal_Bool mbDecimal02;
OUString maText;
- SvXMLImportContext* mpSlaveContext;
+ boost::shared_ptr< SvXMLImportContext > mpSlaveContext;
public:
TYPEINFO();