зеркало из https://github.com/mozilla/pjs.git
Bug 686345 - Don't subtract from our count of canvas's memory if we never added to the count. r=jmuizelaar
This commit is contained in:
Родитель
efc8de2960
Коммит
24bdf2ca79
|
@ -852,7 +852,7 @@ nsCanvasRenderingContext2D::Reset()
|
||||||
|
|
||||||
// only do this for non-docshell created contexts,
|
// only do this for non-docshell created contexts,
|
||||||
// since those are the ones that we created a surface for
|
// since those are the ones that we created a surface for
|
||||||
if (mValid && !mDocShell)
|
if (mValid && !mDocShell && mSurface)
|
||||||
gCanvasMemoryUsed -= mWidth * mHeight * 4;
|
gCanvasMemoryUsed -= mWidth * mHeight * 4;
|
||||||
|
|
||||||
mSurface = nsnull;
|
mSurface = nsnull;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче