Python: fix bug with missing wrapper registration for objects created directly via the python constructor

This commit is contained in:
Gustavo J. A. M. Carneiro
2008-10-20 16:56:40 +01:00
parent 2aecf7055b
commit dd6476d804

View File

@@ -424,6 +424,7 @@ static int %(WRAPPER_NAME)s (%(PYSTRUCT)s *self, PyObject *args, PyObject *kwarg
return -1;
}
%(CONSTRUCT_CODE)s
PyNs3ObjectBase_wrapper_registry[(void *) self->obj] = (PyObject *) self;
return 0;
}
''' % dict(WRAPPER_NAME=wrapper_name, PYSTRUCT=cls.pystruct, CLASS_NAME=cls.full_name,