* python/py-evts.c (gdbpy_initialize_py_events): Don't

incref the module.
This commit is contained in:
Tom Tromey 2013-05-20 20:34:11 +00:00
parent 02146ba51f
commit 72ff8829c1
2 changed files with 5 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2013-05-20 Tom Tromey <tromey@redhat.com>
* python/py-evts.c (gdbpy_initialize_py_events): Don't
incref the module.
2013-05-20 Tom Tromey <tromey@redhat.com> 2013-05-20 Tom Tromey <tromey@redhat.com>
* python/python.c (gdbpy_run_events): Decref the result * python/python.c (gdbpy_run_events): Decref the result

View file

@ -81,9 +81,6 @@ gdbpy_initialize_py_events (void)
if (add_new_registry (&gdb_py_events.new_objfile, "new_objfile") < 0) if (add_new_registry (&gdb_py_events.new_objfile, "new_objfile") < 0)
return -1; return -1;
#ifndef IS_PY3K
Py_INCREF (gdb_py_events.module);
#endif
if (PyModule_AddObject (gdb_module, if (PyModule_AddObject (gdb_module,
"events", "events",
(PyObject *) gdb_py_events.module) < 0) (PyObject *) gdb_py_events.module) < 0)