fix warning.

This commit is contained in:
sspitzer%netscape.com 1999-12-03 09:53:26 +00:00
parent a4d3aa2f8b
commit 32c7c08719

View File

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