[Libreoffice-commits] core.git: svtools/source

Ulrich Kitzinger ulkitz at hotmail.de
Mon Dec 9 06:05:26 PST 2013


 svtools/source/graphic/grfmgr.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit cc36dfc9bf4f327c359d171d8d05f0ede049164e
Author: Ulrich Kitzinger <ulkitz at hotmail.de>
Date:   Sat Nov 30 21:19:31 2013 +0100

    fdo#72156: GraphicObject: Added missing delete of stream
    
    Change-Id: I1b84941b0e4b17d5819b1e4af0da9ce3f673710f
    Signed-off-by: Ulrich Kitzinger <ulkitz at hotmail.de>

diff --git a/svtools/source/graphic/grfmgr.cxx b/svtools/source/graphic/grfmgr.cxx
index 89b6ead..f1c5955 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 );


More information about the Libreoffice-commits mailing list