Bug 945632. Assert we've released memory which the host should have released. r=nical

This commit is contained in:
Nicholas Cameron 2013-12-04 22:03:29 -05:00
parent e48762eeb9
commit 62b1b9650d

View File

@ -549,6 +549,8 @@ MemoryTextureHost::MemoryTextureHost(uint64_t aID,
MemoryTextureHost::~MemoryTextureHost()
{
DeallocateDeviceData();
NS_ASSERTION(!mBuffer || (mFlags & TEXTURE_DEALLOCATE_CLIENT),
"Leaking our buffer");
MOZ_COUNT_DTOR(MemoryTextureHost);
}