Bug 681211 - Attempt to fix a crash in the DOM Memory Reporter when using windows hash table. r=bz

This commit is contained in:
Mounir Lamouri 2011-08-30 11:41:29 +02:00
parent ab13ed1624
commit ec89c3f70b

View File

@ -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;