mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-17 14:25:49 +00:00
![Andrew McCreight](/assets/img/avatar_default.png)
NS_LogCOMPtrAddRef and NS_LogCOMPtrRelease always pass false to GetSerialNumber, because they pass in everything they get without regard to whether it is being logged or not, so they don't want to create a serial number if none exists. This causes the assertions added in bug 1309051 to be hit. To work around this, I hoist the assertion into the other callers of this method. Two of them already had this check, but it was non-fatal. This also makes the asserts not happen in release builds, as I decided it doesn't really matter what happens if somebody tries to use it there. --HG-- extra : rebase_source : 5e70290492fd442b79b4d40c300a263e322f485b