[Libreoffice-commits] core.git: Branch 'libreoffice-4-1-4' - svtools/source
Ulrich Kitzinger
ulkitz at hotmail.de
Mon Dec 9 08:50:23 PST 2013
svtools/source/graphic/grfmgr.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit fffa2b69209f9c1387a6182ca1422aa3f71c1cae
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>
(cherry picked from commit cc36dfc9bf4f327c359d171d8d05f0ede049164e)
Signed-off-by: Michael Stahl <mstahl at redhat.com>
(cherry picked from commit 37ed490fd7bfef1863b26d0f791cba1a04811459)
Reviewed-on: https://gerrit.libreoffice.org/7010
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at 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 );
More information about the Libreoffice-commits
mailing list