add INCREF in embed()

This commit is contained in:
krangelov
2021-10-22 09:52:36 +02:00
parent bfc2ab27e6
commit d1c25ce1c1

View File

@@ -411,6 +411,7 @@ PGF_embed(PGFObject* self, PyObject *modname)
return NULL;
}
Py_INCREF(m);
return m;
}