Bug 916714 - Fix a faulty assertion in TextureHost - r=jrmuizel

This commit is contained in:
Benoit Jacob 2013-09-17 17:42:56 -04:00
parent 016400d5a3
commit 91c9a1558d

View File

@ -709,7 +709,7 @@ public:
// see bug 865908 about fixing this.
virtual void SetBuffer(SurfaceDescriptor* aBuffer, ISurfaceAllocator* aAllocator)
{
MOZ_ASSERT(!mBuffer, "Will leak the old mBuffer");
MOZ_ASSERT(!mBuffer || mBuffer == aBuffer, "Will leak the old mBuffer");
mBuffer = aBuffer;
mDeAllocator = aAllocator;
}