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:
@@ -1510,6 +1510,7 @@ void wxBitmap::UngetRawData(wxPixelDataBase& dataBase)
|
|||||||
p = rowStart;
|
p = rowStart;
|
||||||
p.OffsetY(data, 1);
|
p.OffsetY(data, 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// if we're a DDB we need to convert DIB back to DDB now to make the
|
// if we're a DDB we need to convert DIB back to DDB now to make the
|
||||||
// changes made via raw bitmap access effective
|
// changes made via raw bitmap access effective
|
||||||
@@ -1522,8 +1523,7 @@ void wxBitmap::UngetRawData(wxPixelDataBase& dataBase)
|
|||||||
|
|
||||||
delete dib;
|
delete dib;
|
||||||
}
|
}
|
||||||
}
|
#endif // wxUSE_WXDIB
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
#endif // #ifdef wxHAVE_RAW_BITMAP
|
#endif // #ifdef wxHAVE_RAW_BITMAP
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user