* python/py-evts.c (gdbpy_initialize_py_events): Don't
incref the module.
This commit is contained in:
parent
02146ba51f
commit
72ff8829c1
2 changed files with 5 additions and 3 deletions
|
@ -81,9 +81,6 @@ gdbpy_initialize_py_events (void)
|
|||
if (add_new_registry (&gdb_py_events.new_objfile, "new_objfile") < 0)
|
||||
return -1;
|
||||
|
||||
#ifndef IS_PY3K
|
||||
Py_INCREF (gdb_py_events.module);
|
||||
#endif
|
||||
if (PyModule_AddObject (gdb_module,
|
||||
"events",
|
||||
(PyObject *) gdb_py_events.module) < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue