mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 02:09:28 +00:00

The shutdown procedure for socket classes ensures that the I/O class is deleted independently from its socket class. If the socket class has been deleted, no I/O is performed and no socket events are forwarded. The I/O class therefore doesn't require a strong reference to its socket class. This patch removes the remaining ref-counted pointers from the socket I/O classes. The socket class clears the weak reference in its socket I/O class when closing the socket.