Kaydet (Commit) 1ba10fb5 authored tarafından Armin Le Grand's avatar Armin Le Grand Kaydeden (comit) Caolán McNamara

Resolves: #i123478# Secure mem freeing for BitmapBuffer class

(cherry picked from commit dd1cb9aa)

Change-Id: I7a63835d1e93f4cebc0f908d01873ea3ff91fe66
üst 6e03e292
......@@ -354,6 +354,9 @@ Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap()
if(pExtraRGB)
{
// #i123478# shockingly, BitmapBuffer does not free the memory it is controlling
// in it's destructor, this *has to be done handish*. Doing it here now
delete[] pExtraRGB->mpBits;
delete pExtraRGB;
}
else
......@@ -492,6 +495,9 @@ Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap(const WinSalBitmap& rAlph
if(pExtraA)
{
// #i123478# shockingly, BitmapBuffer does not free the memory it is controlling
// in it's destructor, this *has to be done handish*. Doing it here now
delete[] pExtraA->mpBits;
delete pExtraA;
}
else
......@@ -506,6 +512,9 @@ Gdiplus::Bitmap* WinSalBitmap::ImplCreateGdiPlusBitmap(const WinSalBitmap& rAlph
if(pExtraRGB)
{
// #i123478# shockingly, BitmapBuffer does not free the memory it is controlling
// in it's destructor, this *has to be done handish*. Doing it here now
delete[] pExtraRGB->mpBits;
delete pExtraRGB;
}
else
......
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