mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-12 02:31:41 +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,
|
SetBuffer(gfxASurface* aBuffer,
|
||||||
const nsIntRect& aBufferRect, const nsIntPoint& aBufferRotation)
|
const nsIntRect& aBufferRect, const nsIntPoint& aBufferRotation)
|
||||||
{
|
{
|
||||||
gfxASurface* tmp = mBuffer;
|
nsRefPtr<gfxASurface> tmp = mBuffer.forget();
|
||||||
mBuffer = aBuffer;
|
mBuffer = aBuffer;
|
||||||
mBufferRect = aBufferRect;
|
mBufferRect = aBufferRect;
|
||||||
mBufferRotation = aBufferRotation;
|
mBufferRotation = aBufferRotation;
|
||||||
return tmp;
|
return tmp.forget();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user