author | Andi-Bogdan Postelnicu <bpostelnicu@mozilla.com> |
Tue, 24 Oct 2017 16:52:20 +0300 | |
changeset 685401 | 4b9aa73eb6459f7c640c3ff9ad1bef4831658639 |
parent 684511 | ce1a86d3b4db161c95d1147676bbed839d7a4732 |
child 737132 | 6de5f4af271c81651d1acb6d2b4a71f30d60b801 |
push id | 85913 |
push user | bmo:bpostelnicu@mozilla.com |
push date | Tue, 24 Oct 2017 13:53:08 +0000 |
reviewers | froydnj |
bugs | 1411030 |
milestone | 58.0a1 |
--- a/dom/bindings/BindingUtils.h +++ b/dom/bindings/BindingUtils.h @@ -474,17 +474,17 @@ class ProtoAndIfaceCache return aMallocSizeOf(this); } }; class PageTableCache { public: PageTableCache() { - memset(&mPages, 0, sizeof(mPages)); + memset(mPages.begin(), 0, sizeof(mPages)); } ~PageTableCache() { for (size_t i = 0; i < ArrayLength(mPages); ++i) { delete mPages[i]; } }