summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-06-26 20:58:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-06-27 16:44:05 +0100
commit7988af18ff47308e90527d64d2973e163feafbba (patch)
tree6f60f164eabd0e2fa9e06e72e08e060828fd84a9
parentf2efc955200a8106110fb3fc0b720d0b901640e1 (diff)
fix memory leak
Change-Id: I61446b7f14a153f13c9d0f5541a3d675a620f601
-rwxr-xr-xunusedcode.easy1
-rw-r--r--xml2cmp/source/xcd/dependy.cxx2
2 files changed, 2 insertions, 1 deletions
diff --git a/unusedcode.easy b/unusedcode.easy
index 18b7804b35c4..c1b1341f3331 100755
--- a/unusedcode.easy
+++ b/unusedcode.easy
@@ -630,7 +630,6 @@ 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<ServiceInfo*, std::allocator<ServiceInfo*> >::~vector()
std::__cxx1998::vector<SfxFilter*, std::allocator<SfxFilter*> >::~vector()
std::__cxx1998::vector<SfxItemDesruptor_Impl*, std::allocator<SfxItemDesruptor_Impl*> >::~vector()
std::__cxx1998::vector<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::~vector()
diff --git a/xml2cmp/source/xcd/dependy.cxx b/xml2cmp/source/xcd/dependy.cxx
index 6e909d018582..093d4f5fdd5d 100644
--- a/xml2cmp/source/xcd/dependy.cxx
+++ b/xml2cmp/source/xcd/dependy.cxx
@@ -72,6 +72,8 @@ DependencyFinder::DependencyFinder()
DependencyFinder::~DependencyFinder()
{
+ for (Map_Services::const_iterator aIter = aServices.begin(); aIter != aServices.end(); ++aIter)
+ delete aIter->second;
}
void