mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-20 08:51:04 +00:00

The listener id is postincremented as a subexpression of being inserted into the hash table. That means the key inserted into the table is 1 less than the value returned from the function. Which means that later attempts to remove the returned id will fail because that hash table knows about a different id.