| 303 | }; |
| 304 | |
| 305 | static 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 | } |
| 320 | static void cleanup(PyObject *) { |
| 321 | cleanup(); |
| 322 | } |
nothing calls this directly
no outgoing calls
no test coverage detected