Safari plugin crashes on NPN_GetValue
问题 My plugin code crashes when I call the NPN_GetValue. Basically I created a scriptable object which has a 'getDevice' method that can return a device array to JavaScript. Below is the code snippet. static bool mainNPObjectInvoke(NPObject *obj, NPIdentifier identifier, const NPVariant *args, uint32_t argCount, NPVariant *result) { printf("create main object"); MainNPObject *mainObject = (MainNPObject *)obj; if (identifier == methodIdentifiers[METHOD_ID_GET_DEVICES]) { NPObject *windowObj = NULL