mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-01 02:18:09 +02:00
Fixed a reference counting bug (Python)
This commit is contained in:
@@ -266,8 +266,8 @@ public:
|
||||
// add to the parent class as child class or add to module
|
||||
|
||||
if (! cls->parent ()) {
|
||||
PyList_Append (m_all_list, PythonRef (c2python (cls->name ())).get ());
|
||||
PyModule_AddObject (mp_module->module (), cls->name ().c_str (), (PyObject *) pt);
|
||||
PyList_Append (m_all_list, c2python (cls->name ()));
|
||||
PyModule_AddObjectRef (mp_module->module (), cls->name ().c_str (), (PyObject *) pt);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user