- missing a decref for new pytypes

- remove needless strlen
This commit is contained in:
2009-08-11 19:20:31 +00:00
parent b2a77852ff
commit c77e556b23
2 changed files with 5 additions and 4 deletions

View File

@@ -2371,6 +2371,7 @@ PyObject *pyrna_struct_CreatePyObject( PointerRNA *ptr )
if (tp) {
pyrna = (BPy_StructRNA *) tp->tp_alloc(tp, 0);
Py_DECREF(tp);
}
else {
fprintf(stderr, "Could not make type\n");