mirror of
https://github.com/thp/pyotherside.git
synced 2025-01-28 23:52:55 +08:00
commit
dce73ae75f
@ -32,6 +32,7 @@ class PyObjectListBuilder : public ListBuilder<PyObject *> {
|
||||
|
||||
virtual void append(PyObject *o) {
|
||||
PyList_Append(list, o);
|
||||
Py_DECREF(o);
|
||||
}
|
||||
|
||||
virtual PyObject * value() {
|
||||
|
@ -161,6 +161,7 @@ QPython::importModule_sync(QString name)
|
||||
}
|
||||
|
||||
PyDict_SetItemString(priv->globals, moduleName, module);
|
||||
Py_CLEAR(module);
|
||||
priv->leave();
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user