Bug 946189 - Fix Windows build issue with --disable-crashreporter. r=bsmedberg

This commit is contained in:
Bill Gianopoulos
2013-12-04 08:20:41 -05:00
parent ac2c958b95
commit 75d5071b19

View File

@@ -1560,11 +1560,13 @@ PluginModuleParent::AllocPCrashReporterParent(mozilla::dom::NativeThreadId* id,
bool
PluginModuleParent::DeallocPCrashReporterParent(PCrashReporterParent* actor)
{
#ifdef MOZ_CRASHREPORTER
#ifdef XP_WIN
mozilla::MutexAutoLock lock(mCrashReporterMutex);
if (actor == static_cast<PCrashReporterParent*>(mCrashReporter)) {
mCrashReporter = nullptr;
}
#endif
#endif
delete actor;
return true;