mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 488596 - test_crashreporter.js crashes intermittently: delete the exception handler before freeing the data it references, landing as a bustage fix with presumed-r=ted
This commit is contained in:
parent
6631ab6c3b
commit
0d265fb2ec
@ -656,6 +656,8 @@ nsresult SetupExtraData(nsILocalFile* aAppDataDirectory,
|
||||
|
||||
nsresult UnsetExceptionHandler()
|
||||
{
|
||||
delete gExceptionHandler;
|
||||
|
||||
// do this here in the unlikely case that we succeeded in allocating
|
||||
// our strings but failed to allocate gExceptionHandler.
|
||||
if (crashReporterAPIData_Hash) {
|
||||
@ -681,7 +683,6 @@ nsresult UnsetExceptionHandler()
|
||||
if (!gExceptionHandler)
|
||||
return NS_ERROR_NOT_INITIALIZED;
|
||||
|
||||
delete gExceptionHandler;
|
||||
gExceptionHandler = nsnull;
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user