Reset PyObject pointers to NULL when deinitializing.
commitb6d14e025c017363ce672757332b8e4b1e558653
authorM. Levinson <levinsm@users.sourceforge.net>
Sun, 10 Dec 2006 18:02:34 +0000 (10 13:02 -0500)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Wed, 13 Dec 2006 16:33:54 +0000 (13 18:33 +0200)
treec17e481bd37a590b6a1ac9f7ffc12f499d277ed6
parent47d27a4d39a1b7271693c2be1cd377b5881f7e02
Reset PyObject pointers to NULL when deinitializing.

cleanup_python and python_done_keybinding_interface called by it
now reset the PyObject *python_hooks, *keybindings variables back
to NULL when they release the references.  Without this change,
dangling pointers left in those variables could cause problems
if the Python scripting module were deinitialized and reinitialized.
It looks like such reinitialization is not currently possible though,
because enhancement request 73 (plugins support) has not yet been
implemented.
src/scripting/python/core.c
src/scripting/python/keybinding.c