diff options
author | James Henstridge <james@daa.com.au> | 2003-07-31 13:05:50 +0000 |
---|---|---|
committer | James Henstridge <jamesh@src.gnome.org> | 2003-07-31 13:05:50 +0000 |
commit | 77fb564f4dd90695f1188c156e0cb67658f13e0c (patch) | |
tree | 279fcf2871c05938f57e10aa106680cf87a76566 /pygtype.c | |
parent | f12b1f2641b24969564a3d991c909cce96ddffd6 (diff) | |
download | pygtk-77fb564f4dd90695f1188c156e0cb67658f13e0c.tar.gz |
add a call to PyType_Ready() to make sure the type is initialised (bug
2003-07-31 James Henstridge <james@daa.com.au>
* pygtype.c (pyg_object_descr_doc_get): add a call to
PyType_Ready() to make sure the type is initialised (bug #118699).
Diffstat (limited to 'pygtype.c')
-rw-r--r-- | pygtype.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1126,6 +1126,10 @@ pyg_object_descr_doc_get(void) static PyObject *doc_descr = NULL; if (!doc_descr) { + PyGObjectDoc_Type.ob_type = &PyType_Type; + if (PyType_Ready(&PyGObjectDoc_Type)) + return NULL; + doc_descr = PyObject_NEW(PyObject, &PyGObjectDoc_Type); if (doc_descr == NULL) return NULL; |