summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Kitzinger <ulkitz@hotmail.de>2013-11-30 21:19:31 +0100
committerMichael Stahl <mstahl@redhat.com>2013-12-09 15:03:22 +0100
commitf7b42987c4247244b23f0405fc5af58a92afd945 (patch)
treea5794f01e3096cb0041ee83ad9883630f70c75fc
parent4fb12553f5f273058156026300a715326ec3da2f (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>
-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 89b6eadb768b..f1c59552f29c 100644
--- a/svtools/source/graphic/grfmgr.cxx
+++ b/svtools/source/graphic/grfmgr.cxx
@@ -1160,7 +1160,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 );