diff options
author | Michael Stahl <mstahl@redhat.com> | 2014-09-26 15:23:12 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-09-26 16:13:33 +0200 |
commit | f6c6474ddea7dfdb63d5b67a0b637c8c41fa4d13 (patch) | |
tree | 3e2d352a4c390bf7970fb7d148da98be712881df | |
parent | 24a9eac14fc22e18a48eae5a0de1b5e98194ef86 (diff) |
AddressSanitizer: alloc-dealloc-mismatch (operator new vs free)
Change-Id: I500e70e64c478210bc6da0c13894995a0984c018
-rw-r--r-- | sw/source/filter/html/htmlgrin.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/html/htmlgrin.cxx b/sw/source/filter/html/htmlgrin.cxx index 4e136a437b36..0d834fe85fea 100644 --- a/sw/source/filter/html/htmlgrin.cxx +++ b/sw/source/filter/html/htmlgrin.cxx @@ -698,12 +698,12 @@ IMAGE_SETEVENT: INetURLObject aGraphicURL( sGrfNm ); if( aGraphicURL.GetProtocol() == INET_PROT_DATA ) { - SvMemoryStream* aStream = aGraphicURL.getData(); - if( aStream ) + SvMemoryStream* pStream = aGraphicURL.getData(); + if (pStream) { - if (GRFILTER_OK == GraphicFilter::GetGraphicFilter().ImportGraphic(aGraphic, "", *aStream)) + if (GRFILTER_OK == GraphicFilter::GetGraphicFilter().ImportGraphic(aGraphic, "", *pStream)) sGrfNm = ""; - free( aStream ); + delete pStream; } } // sBaseURL is empty if the source is clipboard |