summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-12 09:36:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-12 11:43:50 +0000
commit9a46b626c5e8bfbc478fe765aaaee61d1e56d037 (patch)
tree6dac69ad41ccfaa2e1fcce153d2d5de0a2a9e326 /svx/inc
parent4be58b0b9d2817be716a0271320c70064d2b3d88 (diff)
fix SvxShowCharSetItem leak
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svx/charmap.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/inc/svx/charmap.hxx b/svx/inc/svx/charmap.hxx
index 7e863915e52b..f5bb08b26eee 100644
--- a/svx/inc/svx/charmap.hxx
+++ b/svx/inc/svx/charmap.hxx
@@ -33,6 +33,7 @@
#include <vcl/ctrl.hxx>
#include <vcl/metric.hxx>
#include <vcl/scrbar.hxx>
+#include <boost/shared_ptr.hpp>
#include <map>
#include <tools/shl.hxx>
#include "svx/svxdllapi.h"
@@ -106,7 +107,7 @@ protected:
private:
- typedef ::std::map<sal_Int32, ::svx::SvxShowCharSetItem*> ItemsMap;
+ typedef ::std::map<sal_Int32, boost::shared_ptr<svx::SvxShowCharSetItem> > ItemsMap;
ItemsMap m_aItems;
Link aDoubleClkHdl;
Link aSelectHdl;