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:
Jonathan Watt 2014-03-07 13:21:46 +00:00
parent 518619e344
commit ef8705a2a7

View File

@ -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;