forked from GitHub/gf-core
add INCREF in embed()
This commit is contained in:
@@ -410,7 +410,8 @@ PGF_embed(PGFObject* self, PyObject *modname)
|
||||
Py_DECREF(m);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Py_INCREF(m);
|
||||
return m;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user