mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
Bug 681211 - Attempt to fix a crash in the DOM Memory Reporter when using windows hash table. r=bz
This commit is contained in:
parent
ab13ed1624
commit
ec89c3f70b
@ -103,6 +103,8 @@ nsDOMMemoryReporter::GetAmount(PRInt64* aAmount) {
|
||||
*aAmount = 0;
|
||||
|
||||
nsGlobalWindow::WindowByIdTable* windows = nsGlobalWindow::GetWindowsTable();
|
||||
NS_ENSURE_TRUE(windows, NS_OK);
|
||||
|
||||
windows->Enumerate(GetWindowsMemoryUsage, aAmount);
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user