diff options
author | Ulrich Kitzinger <ulkitz@hotmail.de> | 2013-11-30 21:19:31 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-12-09 15:02:04 +0100 |
commit | cc36dfc9bf4f327c359d171d8d05f0ede049164e (patch) | |
tree | ec458e93236e2a077243e10bee4c23d056518096 /svtools | |
parent | 44d476f509a883d6f6b5f9c90d45729ba93b6245 (diff) |
fdo#72156: GraphicObject: Added missing delete of stream
Change-Id: I1b84941b0e4b17d5819b1e4af0da9ce3f673710f
Signed-off-by: Ulrich Kitzinger <ulkitz@hotmail.de>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/grfmgr.cxx | 3 |
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 ); |