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 66d1472935
commit 34c7dd5686

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