C ++コードでオブジェクトを作成し、ActionScriptコードで返す場合、返す前にAS3_Releaseを呼び出す必要がありますか?たとえば、*。ggファイルに次の関数があります。
public function makeThumbnail(...): Object
{
AS3_Val objDestByteArray = AS3_New(ByteArray_class, no_params);
int intDestWidth;
int intDestHeight;
// ... make some calculations and set results as object properties
AS3_Val result = AS3_Object("width:IntType, height:IntType, data:AS3ValType", intDestWidth, intDestHeight, objDestByteArray);
// Do I need to call this?
//AS3_Release(objDestByteArray);
//AS3_Release(result);
return result;
}
と変数を呼び出す必要AS3_Release
がありますか?objDestByteArray
result