MCPcopy Create free account
hub / github.com/bab2min/tomotopy / dealloc

Method dealloc

src/python/handler/PyUtils.h:1808–1824  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1806 }
1807
1808 static void dealloc(Derived* self)
1809 {
1810 self->~Derived();
1811
1812 auto* cobj = static_cast<CObject<Derived>*>(self);
1813 Py_XDECREF(cobj->managedDict);
1814 Py_XDECREF(cobj->managedWeakList);
1815
1816 if (PyType_HasFeature(Py_TYPE(self), Py_TPFLAGS_HAVE_GC))
1817 {
1818 PyObject_GC_Del(self);
1819 }
1820 else
1821 {
1822 PyObject_Free(self);
1823 }
1824 }
1825
1826 using _InitArgs = std::tuple<>;
1827

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected