mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1213320 - Detect IPC::Channel leaks with the XPCOM leak checker. r=jld
This commit is contained in:
parent
7219bdb178
commit
8ff287ea02
@ -1006,13 +1006,16 @@ uint32_t Channel::ChannelImpl::Unsound_NumQueuedMessages() const
|
||||
Channel::Channel(const std::wstring& channel_id, Mode mode,
|
||||
Listener* listener)
|
||||
: channel_impl_(new ChannelImpl(channel_id, mode, listener)) {
|
||||
MOZ_COUNT_CTOR(IPC::Channel);
|
||||
}
|
||||
|
||||
Channel::Channel(int fd, Mode mode, Listener* listener)
|
||||
: channel_impl_(new ChannelImpl(fd, mode, listener)) {
|
||||
MOZ_COUNT_CTOR(IPC::Channel);
|
||||
}
|
||||
|
||||
Channel::~Channel() {
|
||||
MOZ_COUNT_DTOR(IPC::Channel);
|
||||
delete channel_impl_;
|
||||
}
|
||||
|
||||
|
@ -502,14 +502,17 @@ uint32_t Channel::ChannelImpl::Unsound_NumQueuedMessages() const
|
||||
Channel::Channel(const std::wstring& channel_id, Mode mode,
|
||||
Listener* listener)
|
||||
: channel_impl_(new ChannelImpl(channel_id, mode, listener)) {
|
||||
MOZ_COUNT_CTOR(IPC::Channel);
|
||||
}
|
||||
|
||||
Channel::Channel(const std::wstring& channel_id, void* server_pipe,
|
||||
Mode mode, Listener* listener)
|
||||
: channel_impl_(new ChannelImpl(channel_id, server_pipe, mode, listener)) {
|
||||
MOZ_COUNT_CTOR(IPC::Channel);
|
||||
}
|
||||
|
||||
Channel::~Channel() {
|
||||
MOZ_COUNT_DTOR(IPC::Channel);
|
||||
delete channel_impl_;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user