summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-16 15:07:03 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-16 15:39:29 +0200
commit2ee4b71d6dd52e1613cf4e9dc1c6392661b7900c (patch)
tree86720d5023307f65eb91b34b45795670598b5e87 /framework/source
parentbaf8301f80c0db8dddbb31826480c3ba799c0a67 (diff)
do not leak memory
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/fwe/xml/imagesdocumenthandler.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/source/fwe/xml/imagesdocumenthandler.cxx b/framework/source/fwe/xml/imagesdocumenthandler.cxx
index 2de8f244f778..682fe67d8aaa 100644
--- a/framework/source/fwe/xml/imagesdocumenthandler.cxx
+++ b/framework/source/fwe/xml/imagesdocumenthandler.cxx
@@ -515,6 +515,8 @@ throw( SAXException, RuntimeException )
if ( m_pExternalImages )
m_pExternalImages->Insert( pItem, m_pExternalImages->Count() );
+ else
+ delete pItem;
}
break;