0000499: Crash during close of tab with mouse event attached

git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5198 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
wmayer 2011-11-28 15:05:39 +00:00
parent 25755de65e
commit 7ed47bfe91

View File

@ -142,6 +142,7 @@ View3DInventorPy::View3DInventorPy(View3DInventor *vi)
View3DInventorPy::~View3DInventorPy()
{
Base::PyGILStateLocker lock;
for (std::list<PyObject*>::iterator it = callbacks.begin(); it != callbacks.end(); ++it)
Py_DECREF(*it);
}