mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
fix warning.
This commit is contained in:
parent
a4d3aa2f8b
commit
32c7c08719
@ -43,6 +43,8 @@ void nsUrlListenerManager::ReleaseListeners()
|
||||
{
|
||||
PRUint32 count;
|
||||
nsresult rv = m_listeners->Count(&count);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "m_listeners->Count() failed");
|
||||
if (NS_FAILED(rv)) return;
|
||||
|
||||
for (int i = count - 1; i >= 0; i--)
|
||||
m_listeners->RemoveElementAt(i);
|
||||
|
Loading…
Reference in New Issue
Block a user