summaryrefslogtreecommitdiff
path: root/gobjectmodule.c
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@telia.com>2002-02-12 11:10:53 +0000
committerJohan Dahlin <zilch@src.gnome.org>2002-02-12 11:10:53 +0000
commit47dfa3b3bce2dc7162a2008dd6a047217b560a8d (patch)
treeb15a73febc8e8ea006c79e9525aebc5ca05fd4fc /gobjectmodule.c
parent71cd8d3f1d1d92486ab26bd5b4a278bb2d63e784 (diff)
downloadpygtk-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.c5
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);