PySide/Shiboken — pull request #63 by jasonmccampbell (2012-02-09 16:24:51+00:00)
Title: [#1139] Fixes crash at exit due to thread state (tstate) == NULL

Binding manager's static destructor is triggered after the Python interpreter has
been de-initialized. The destructor destroys any remaining objects and if one of these
objects has a list of weak references, the call to release the weak refs will cause an
abort due to the illegal call back into the Python interpreter. This fix just puts a
guard around the call to skip it if the Python interpreter is no longer initialized.