Loading
Bug 1368270: When shutting down Windows AccessibleWraps, don't clear the id. r=MarcoZ, a=jcristau
When an Accessible is shut down, there might still be external references to it, so we keep the instance alive. We don't want to reuse the id until all references are released, so we only release the id in the destructor (which runs when all references are released). Previously, we were clearing the id variable in Shutdown, which meant we couldn't release the id in the destructor! This meant we always leaked ids, never reusing them. Now, we don't clear the id in Shutdown. Differential Revision: https://phabricator.services.mozilla.com/D84653