xmloff/source/draw/XMLNumberStyles.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit acb8d9f6d1bcc95c48a27252274c44d8ff534376 Author: Jian Fang Zhang <zhan...@apache.org> Date: Mon Sep 3 01:52:22 2012 +0000 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 diff --git a/xmloff/source/draw/XMLNumberStyles.cxx b/xmloff/source/draw/XMLNumberStyles.cxx index 15346ca..44d40d2 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits