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

New commits:
commit cc36dfc9bf4f327c359d171d8d05f0ede049164e
Author: Ulrich Kitzinger <ulk...@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 <ulk...@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 );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to