diff options
-rw-r--r-- | unoxml/source/events/eventdispatcher.cxx | 10 | ||||
-rw-r--r-- | unoxml/source/events/eventdispatcher.hxx | 2 | ||||
-rwxr-xr-x | unusedcode.easy | 1 |
3 files changed, 12 insertions, 1 deletions
diff --git a/unoxml/source/events/eventdispatcher.cxx b/unoxml/source/events/eventdispatcher.cxx index 70da8370d015..665815b686d3 100644 --- a/unoxml/source/events/eventdispatcher.cxx +++ b/unoxml/source/events/eventdispatcher.cxx @@ -74,6 +74,16 @@ namespace DOM { namespace events { } } + CEventDispatcher::~CEventDispatcher() + { + // delete the multimaps for the various types + for (TypeListenerMap::iterator aI = m_CaptureListeners.begin(); aI != m_CaptureListeners.end(); ++aI) + delete aI->second; + + for (TypeListenerMap::iterator aI = m_TargetListeners.begin(); aI != m_TargetListeners.end(); ++aI) + delete aI->second; + } + void CEventDispatcher::callListeners( TypeListenerMap const& rTMap, xmlNodePtr const pNode, diff --git a/unoxml/source/events/eventdispatcher.hxx b/unoxml/source/events/eventdispatcher.hxx index 479827784617..cb2170199cc4 100644 --- a/unoxml/source/events/eventdispatcher.hxx +++ b/unoxml/source/events/eventdispatcher.hxx @@ -79,6 +79,8 @@ public: xmlNodePtr const pNode, Reference<XNode> const& xNode, Reference< XEvent > const& xEvent) const; + + ~CEventDispatcher(); }; }} diff --git a/unusedcode.easy b/unusedcode.easy index 10f716359855..77059402868d 100755 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -175,7 +175,6 @@ sd::LeftDrawPaneShell::RegisterInterface(SfxModule*) sd::LeftImpressPaneShell::RegisterInterface(SfxModule*) sd::ToolPanelPaneShell::RegisterInterface(SfxModule*) sd::ViewShellBase::RegisterFactory(unsigned short) -std::__cxx1998::multimap<_xmlNode*, com::sun::star::uno::Reference<com::sun::star::xml::dom::events::XEventListener>, std::less<_xmlNode*>, std::allocator<std::pair<_xmlNode* const, com::sun::star::uno::Reference<com::sun::star::xml::dom::events::XEventListener> > > >::~multimap() std::__cxx1998::vector<OrderedEntry*, std::allocator<OrderedEntry*> >::~vector() std::__cxx1998::vector<SfxFilter*, std::allocator<SfxFilter*> >::~vector() std::__cxx1998::vector<SfxItemDesruptor_Impl*, std::allocator<SfxItemDesruptor_Impl*> >::~vector() |