* 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
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue