mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 07:04:09 +00:00
Bug 570625, part -1: ThebesLayerBuffer::SetBuffer needs to hold its ref to the old buffer. r=roc
This commit is contained in:
parent
fd4469ce23
commit
3f1c9a5b8a
@ -160,11 +160,11 @@ protected:
|
||||
SetBuffer(gfxASurface* aBuffer,
|
||||
const nsIntRect& aBufferRect, const nsIntPoint& aBufferRotation)
|
||||
{
|
||||
gfxASurface* tmp = mBuffer;
|
||||
nsRefPtr<gfxASurface> tmp = mBuffer.forget();
|
||||
mBuffer = aBuffer;
|
||||
mBufferRect = aBufferRect;
|
||||
mBufferRotation = aBufferRotation;
|
||||
return tmp;
|
||||
return tmp.forget();
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user