Bug 920397 part 2 - MessageChannel::~MessageChannel() now asserts that closing the handle succeeded. r=bsmedberg

This commit is contained in:
Mark Hammond 2013-10-01 10:56:16 +10:00
parent 91247a80e1
commit 9a336633c1

View File

@ -76,7 +76,8 @@ MessageChannel::~MessageChannel()
MOZ_COUNT_DTOR(ipc::MessageChannel);
IPC_ASSERT(mCxxStackFrames.empty(), "mismatched CxxStackFrame ctor/dtors");
#ifdef OS_WIN
CloseHandle(mEvent);
DebugOnly<BOOL> ok = CloseHandle(mEvent);
MOZ_ASSERT(ok);
#endif
}