* 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

@ -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)