This is an automated email from the git hooks/post-receive script.
pierov pushed a commit to branch geckoview-99.0.1-11.0-1 in repository tor-browser.
commit 80fe4770cc9236da1077cb2c0b429cb34b0e2c65 Author: Miko Mynttinen mikokm@gmail.com AuthorDate: Tue Mar 22 22:34:37 2022 +0000
Bug 1760847 - Deallocate linked list nodes when RemoveBottom() is called r=emilio a=dmeehan
Differential Revision: https://phabricator.services.mozilla.com/D141789 --- layout/painting/nsDisplayList.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/layout/painting/nsDisplayList.h b/layout/painting/nsDisplayList.h index 4395412862c08..b41bb874c1f04 100644 --- a/layout/painting/nsDisplayList.h +++ b/layout/painting/nsDisplayList.h @@ -3250,7 +3250,10 @@ class nsDisplayList { }
nsDisplayItem* bottom = mBottom->mValue; - mBottom = mBottom->mNext; + + auto next = mBottom->mNext; + Deallocate(mBottom); + mBottom = next;
if (!mBottom) { // No bottom item means no items at all.