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
Родитель 016400d5a3
Коммит 91c9a1558d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -709,7 +709,7 @@ public:
// see bug 865908 about fixing this. // see bug 865908 about fixing this.
virtual void SetBuffer(SurfaceDescriptor* aBuffer, ISurfaceAllocator* aAllocator) 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; mBuffer = aBuffer;
mDeAllocator = aAllocator; mDeAllocator = aAllocator;
} }