mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1245249 - Check actor state before calling Send__delete__(); r=luke
This commit is contained in:
parent
ef2b8b8c1a
commit
07a8b4fecb
@ -1004,7 +1004,8 @@ ParentRunnable::Run()
|
||||
|
||||
// Metadata is now open.
|
||||
if (!SendOnOpenMetadataForRead(mMetadata)) {
|
||||
Unused << Send__delete__(this, JS::AsmJSCache_InternalError);
|
||||
Fail();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
@ -1038,7 +1039,8 @@ ParentRunnable::Run()
|
||||
FileDescriptor::PlatformHandleType handle =
|
||||
FileDescriptor::PlatformHandleType(PR_FileDesc2NativeHandle(mFileDesc));
|
||||
if (!SendOnOpenCacheFile(mFileSize, FileDescriptor(handle))) {
|
||||
Unused << Send__delete__(this, JS::AsmJSCache_InternalError);
|
||||
Fail();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user