DescriptionAn exprimental fix for Bug 65940.
It seems these leaks are caused by a reference-count mismatch for a ChannelProxy::Context object. (This class expects to increase its reference count in OnChannelOpened() and to decrease it in OnChannelClosed(). On the other hand, we cannot call OnChannelClosed() after calling ClearIPCMessageLoop() because it detaches the message loop of a ChannelProxy::Context object. That is, calling ChannelProxy::Close() in ChannelProxy::~ChannelProxy() cannot decrease the reference count to its context.) This change just explicitly calls ChannelProxy::Close() before calling ChannelProxy::ClearIPCMessageLoop().
BUG=65940
TEST=make the valgrind bot green without suppressions.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68831
Patch Set 1 #
Messages
Total messages: 3 (0 generated)
|