mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-30 18:56:40 +00:00
#565: M1367219
This commit is contained in:
parent
09a4a8bfc7
commit
6f63dc2cc3
@ -243,8 +243,13 @@ FrameLayerBuilder::DisplayItemData::~DisplayItemData()
|
|||||||
array->RemoveElement(this);
|
array->RemoveElement(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
MOZ_RELEASE_ASSERT(sAliveDisplayItemDatas && sAliveDisplayItemDatas->Contains(this));
|
MOZ_RELEASE_ASSERT(sAliveDisplayItemDatas);
|
||||||
sAliveDisplayItemDatas->RemoveEntry(this);
|
nsPtrHashKey<FrameLayerBuilder::DisplayItemData>* entry
|
||||||
|
= sAliveDisplayItemDatas->GetEntry(this);
|
||||||
|
MOZ_RELEASE_ASSERT(entry);
|
||||||
|
|
||||||
|
sAliveDisplayItemDatas->RemoveEntry(entry);
|
||||||
|
|
||||||
if (sAliveDisplayItemDatas->Count() == 0) {
|
if (sAliveDisplayItemDatas->Count() == 0) {
|
||||||
delete sAliveDisplayItemDatas;
|
delete sAliveDisplayItemDatas;
|
||||||
sAliveDisplayItemDatas = nullptr;
|
sAliveDisplayItemDatas = nullptr;
|
||||||
|
Loading…
Reference in New Issue
Block a user