free the DIB for raw bitmaps even if they don't use alpha channel

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-10-21 12:51:50 +00:00
parent 26dddf6c34
commit 289307fa14

View File

@@ -1510,20 +1510,20 @@ void wxBitmap::UngetRawData(wxPixelDataBase& dataBase)
p = rowStart;
p.OffsetY(data, 1);
}
// if we're a DDB we need to convert DIB back to DDB now to make the
// changes made via raw bitmap access effective
if ( !GetBitmapData()->m_isDIB )
{
wxDIB *dib = GetBitmapData()->m_dib;
GetBitmapData()->m_dib = NULL;
// TODO: convert
delete dib;
}
}
#endif
// if we're a DDB we need to convert DIB back to DDB now to make the
// changes made via raw bitmap access effective
if ( !GetBitmapData()->m_isDIB )
{
wxDIB *dib = GetBitmapData()->m_dib;
GetBitmapData()->m_dib = NULL;
// TODO: convert
delete dib;
}
#endif // wxUSE_WXDIB
}
#endif // #ifdef wxHAVE_RAW_BITMAP