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
518619e344
commit
ef8705a2a7
@ -347,6 +347,13 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
virtual ~DataSourceSurface()
|
||||
{
|
||||
MOZ_ASSERT(!mIsMapped, "Someone forgot to call Unmap()");
|
||||
}
|
||||
#endif
|
||||
|
||||
struct MappedSurface {
|
||||
uint8_t *mData;
|
||||
int32_t mStride;
|
||||
|
Loading…
Reference in New Issue
Block a user