summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Kitzinger <ulkitz@hotmail.de>2013-11-30 21:19:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-12-09 16:49:57 +0000
commitfffa2b69209f9c1387a6182ca1422aa3f71c1cae (patch)
treeac6c1e17e82e419ef744359a00fe1714edb0eb42
parent7a92317c40a5aa5dcd78bc52d8c426b446626b0b (diff)
fdo#72156: GraphicObject: Added missing delete of stream
Change-Id: I1b84941b0e4b17d5819b1e4af0da9ce3f673710f Signed-off-by: Ulrich Kitzinger <ulkitz@hotmail.de> (cherry picked from commit cc36dfc9bf4f327c359d171d8d05f0ede049164e) Signed-off-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 37ed490fd7bfef1863b26d0f791cba1a04811459) Reviewed-on: https://gerrit.libreoffice.org/7010 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--svtools/source/graphic/grfmgr.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index 136aa578e961..9f14f3da3877 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -1138,7 +1138,10 @@ GraphicObject GraphicObject::CreateGraphicObjectFromURL( const OUString &rURL )
{
SvStream* pStream = utl::UcbStreamHelper::CreateStream( aURL, STREAM_READ );
if( pStream )
+ {
GraphicConverter::Import( *pStream, aGraphic );
+ delete pStream;
+ }
}
return GraphicObject( aGraphic );