diff --git a/dom/xul/XULDocument.cpp b/dom/xul/XULDocument.cpp index fa87020f90ea..f43b9854bdd2 100644 --- a/dom/xul/XULDocument.cpp +++ b/dom/xul/XULDocument.cpp @@ -839,7 +839,7 @@ XULDocument::RemoveBroadcastListenerFor(Element& aBroadcaster, delete bl; if (entry->mListeners.IsEmpty()) - PL_DHashTableRemove(mBroadcasterMap, &aBroadcaster); + mBroadcasterMap->RemoveEntry(entry); break; }