fdo#39440 - cppcheck cleanliness

removed some cppcheck warning

Change-Id: I81963001e4737c583764b07bea9abf59a61dead7
Reviewed-on: https://gerrit.libreoffice.org/1518
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
This commit is contained in:
Radu Ioan 2012-12-31 01:27:47 +02:00 committed by Markus Mohrhard
parent afb9d7d84c
commit 3b1da9e650

View file

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