зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1242778: Add MOZ_COUNT_CTOR & MOZ_COUNT_DTOR calls to track leaks of imagelib's FrameAnimator class. r=tn
Also add crashtest with a corrupt animated PNG image that causes a leak to be reported (thanks to these MOZ_COUNT calls). This leak is fixed by the patch on separate bug 1237709
.
This commit is contained in:
Родитель
1a1b1c6b90
Коммит
7d7a7ec332
|
@ -36,7 +36,14 @@ public:
|
|||
, mFirstFrameTimeout(0)
|
||||
, mAnimationMode(aAnimationMode)
|
||||
, mDoneDecoding(false)
|
||||
{ }
|
||||
{
|
||||
MOZ_COUNT_CTOR(FrameAnimator);
|
||||
}
|
||||
|
||||
~FrameAnimator()
|
||||
{
|
||||
MOZ_COUNT_DTOR(FrameAnimator);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return value from RequestRefresh. Tells callers what happened in that call
|
||||
|
|
Двоичный файл не отображается.
После Ширина: | Высота: | Размер: 16 KiB |
|
@ -15,6 +15,7 @@ skip-if(B2G) load 944353.jpg
|
|||
load 1205923-1.html
|
||||
load 1212954-1.svg
|
||||
load 1235605.gif
|
||||
load 1242778-1.png
|
||||
load colormap-range.gif
|
||||
HTTP load delayedframe.sjs # A 3-frame animated GIF with an inordinate delay between the second and third frame
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче