[Libreoffice-commits] core.git: Branch 'libreoffice-4-2' - svtools/source
Ulrich Kitzinger
ulkitz at hotmail.de
Mon Dec 9 06:08:03 PST 2013
svtools/source/graphic/grfmgr.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f7b42987c4247244b23f0405fc5af58a92afd945
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>
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