diff options
| -rw-r--r-- | gobject/gobjectmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gobject/gobjectmodule.c b/gobject/gobjectmodule.c index 5b62189..e13ccdb 100644 --- a/gobject/gobjectmodule.c +++ b/gobject/gobjectmodule.c @@ -1401,8 +1401,9 @@ initgobject(void) /* for addon libraries ... */ PyDict_SetItemString(d, "_PyGObject_API", - PyCObject_FromVoidPtr(&pygobject_api_functions,NULL)); - + o=PyCObject_FromVoidPtr(&pygobject_api_functions,NULL)); + Py_DECREF(o); + /* some constants */ PyModule_AddIntConstant(m, "SIGNAL_RUN_FIRST", G_SIGNAL_RUN_FIRST); PyModule_AddIntConstant(m, "SIGNAL_RUN_LAST", G_SIGNAL_RUN_LAST); |
