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:06:31 +0100 |
commit | 37ed490fd7bfef1863b26d0f791cba1a04811459 (patch) | |
tree | 7f2881889ca2d407b2ab0a75ea4669a87041c47c | |
parent | 812963c5ff6e1c4685eddb830a82a69a3801d820 (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.cxx | 3 |
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 ); |