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

New commits:
commit fffa2b69209f9c1387a6182ca1422aa3f71c1cae
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>
    (cherry picked from commit cc36dfc9bf4f327c359d171d8d05f0ede049164e)
    Signed-off-by: Michael Stahl <mst...@redhat.com>
    (cherry picked from commit 37ed490fd7bfef1863b26d0f791cba1a04811459)
    Reviewed-on: https://gerrit.libreoffice.org/7010
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/svtools/source/graphic/grfmgr.cxx 
b/svtools/source/graphic/grfmgr.cxx
index 136aa57..9f14f3d 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 );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to