mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 13:57:32 +00:00

If the Init() routine happens to perform a balanced AddRef/Release, the instance will be prematurely destroyed when Release() is called. The change is to do the AddRef() before calling the initialization routine to stabilize the instance's ref-count. r: dp, putterman