mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 692342 - Move a call to SetValNeedsCleanup() to an equivalent location. r=mrbkap
This commit is contained in:
parent
5424bb3bcc
commit
95cde91eeb
@ -2731,8 +2731,11 @@ CallMethodHelper::ConvertDependentParam(uint8 i)
|
||||
Throw(NS_ERROR_XPC_CANT_GET_ARRAY_INFO, mCallContext);
|
||||
return JS_FALSE;
|
||||
}
|
||||
} else
|
||||
if (datum_type.IsPointer())
|
||||
dp->SetValNeedsCleanup();
|
||||
} else {
|
||||
datum_type = type;
|
||||
}
|
||||
|
||||
if (datum_type.IsInterfacePointer()) {
|
||||
dp->SetValNeedsCleanup();
|
||||
@ -2744,10 +2747,6 @@ CallMethodHelper::ConvertDependentParam(uint8 i)
|
||||
return JS_FALSE;
|
||||
|
||||
if (paramInfo.IsOut()) {
|
||||
if (datum_type.IsPointer() &&
|
||||
isArray)
|
||||
dp->SetValNeedsCleanup();
|
||||
|
||||
if (!paramInfo.IsIn())
|
||||
return JS_TRUE;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user