mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 980428 - Add a DEBUG-only DataSourceSurface dtor to assert that the surface has not been left mapped. r=Bas
This commit is contained in:
parent
f5b9b89e8c
commit
1fc03c28ce
@ -347,6 +347,13 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEBUG
|
||||||
|
virtual ~DataSourceSurface()
|
||||||
|
{
|
||||||
|
MOZ_ASSERT(!mIsMapped, "Someone forgot to call Unmap()");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct MappedSurface {
|
struct MappedSurface {
|
||||||
uint8_t *mData;
|
uint8_t *mData;
|
||||||
int32_t mStride;
|
int32_t mStride;
|
||||||
|
Loading…
Reference in New Issue
Block a user