Kaydet (Commit) d654c119 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#705736 Resource leak

Change-Id: I124f75e56aad1bd5008a7d9d64328b0e6e5f874c
üst 92ffbf51
......@@ -248,6 +248,8 @@ Bitmap createHistorical8x8FromArray(const sal_uInt16* pArray, Color aColorPix, C
bool isHistorical8x8(const BitmapEx& rBitmapEx, BitmapColor& o_rBack, BitmapColor& o_rFront)
{
bool bRet(false);
if(!rBitmapEx.IsTransparent())
{
Bitmap aBitmap(rBitmapEx.GetBitmap());
......@@ -269,14 +271,16 @@ bool isHistorical8x8(const BitmapEx& rBitmapEx, BitmapColor& o_rBack, BitmapColo
o_rFront = rPalette[1];
o_rBack = rPalette[0];
return true;
bRet = true;
}
Bitmap::ReleaseAccess(pRead);
}
}
}
}
return false;
return bRet;
}
XFillBitmapItem::XFillBitmapItem(SvStream& rIn, sal_uInt16 nVer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment