Bug 1485358 - fix purging of missing glyph WebRender users. r=me

This commit is contained in:
Lee Salzman 2018-08-22 11:12:33 -04:00
parent 37fb58dac2
commit 5b4c63c8a1

View File

@ -157,7 +157,6 @@ public:
void
Remove()
{
remove();
mManager->RemoveUserData(&sWRUserDataKey);
}
@ -232,8 +231,11 @@ PurgeWRGlyphAtlas()
}
}
}
// Remove the layer manager's destroy notification.
user->Remove();
}
// Remove the layer managers' destroy notifications only after processing
// so as not to mess up gWRUsers iteration.
while (!gWRUsers.isEmpty()) {
gWRUsers.popFirst()->Remove();
}
// Finally, clear out the atlases.
for (size_t i = 0; i < 8; i++) {