[tor-commits] [tor-browser] 234/311: Bug 1760847 - Deallocate linked list nodes when RemoveBottom() is called r=emilio a=dmeehan
gitolite role
git at cupani.torproject.org
Tue Apr 26 15:30:34 UTC 2022
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 at 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.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tor-commits
mailing list