Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mojo] Eliminate leak in InterfacePtrSet
InterfacePtrSet relies on its ELements to delete themselves. In turn they rely on receiving a connection error callback from their InterfacePtr. However, when InterfacePtrSet is destroyed it calls Element::Close() on any live Elements. Element::Close() resets the InterfacePtr, meaning that that Entry will *not* receive a connection error callback from that InterfacePtr at any point in the future and so will leak. This CL eliminates the leak by having Element::Close() delete the Element. Review-Url: https://codereview.chromium.org/2471033002 Cr-Commit-Position: refs/heads/master@{#429168}
- Loading branch information