diff options
author | Johan Dahlin <jdahlin@telia.com> | 2002-02-12 11:10:53 +0000 |
---|---|---|
committer | Johan Dahlin <zilch@src.gnome.org> | 2002-02-12 11:10:53 +0000 |
commit | 47dfa3b3bce2dc7162a2008dd6a047217b560a8d (patch) | |
tree | b15a73febc8e8ea006c79e9525aebc5ca05fd4fc /gobjectmodule.c | |
parent | 71cd8d3f1d1d92486ab26bd5b4a278bb2d63e784 (diff) | |
download | pygtk-47dfa3b3bce2dc7162a2008dd6a047217b560a8d.tar.gz |
Fix a leak
2002-02-12 Johan Dahlin <jdahlin@telia.com>
* gobjectmodule.c (initgobject): Fix a leak
* gtk/gtkmodule.c (init_gtk): Fix another one
Diffstat (limited to 'gobjectmodule.c')
-rw-r--r-- | gobjectmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gobjectmodule.c b/gobjectmodule.c index 5b62189a..e13ccdbc 100644 --- a/gobjectmodule.c +++ b/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); |