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();