MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / cleanup

Function cleanup

src/modules/pythonmonkey/pythonmonkey.cc:305–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303};
304
305static void cleanup() {
306 // Clean up the PythonMonkey module
307 Py_XDECREF(PythonMonkey_Null);
308 Py_XDECREF(PythonMonkey_BigInt);
309
310 // Clean up SpiderMonkey
311 delete autoRealm;
312 delete global;
313 if (GLOBAL_CX) {
314 JS_DestroyContext(GLOBAL_CX);
315 GLOBAL_CX = nullptr;
316 }
317 delete JOB_QUEUE;
318 JS_ShutDown();
319}
320static void cleanup(PyObject *) {
321 cleanup();
322}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected