From 3b1da9e650db388baa6d649219e2a0e45b58f062 Mon Sep 17 00:00:00 2001 From: Radu Ioan Date: Mon, 31 Dec 2012 01:27:47 +0200 Subject: fdo#39440 - cppcheck cleanliness removed some cppcheck warning Change-Id: I81963001e4737c583764b07bea9abf59a61dead7 Reviewed-on: https://gerrit.libreoffice.org/1518 Reviewed-by: Markus Mohrhard Tested-by: Markus Mohrhard --- lotuswordpro/source/filter/lwpbackgroundstuff.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'lotuswordpro/source') diff --git a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx index d26e0b302b67..a38d41920235 100644 --- a/lotuswordpro/source/filter/lwpbackgroundstuff.cxx +++ b/lotuswordpro/source/filter/lwpbackgroundstuff.cxx @@ -169,11 +169,8 @@ XFBGImage* LwpBackgroundStuff::GetFillPattern() XFBGImage* pXFBGImage = new XFBGImage(); pXFBGImage->SetImageData(pImageBuff, nSize); - if (pImageBuff) - { - delete [] pImageBuff; - pImageBuff = NULL; - } + delete [] pImageBuff; + pImageBuff = NULL; pXFBGImage->SetRepeate(); -- cgit