From 7ed47bfe91769ba55d605dc4ce274fdf9a186e96 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 28 Nov 2011 15:05:39 +0000 Subject: [PATCH] 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 --- src/Gui/View3DPy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Gui/View3DPy.cpp b/src/Gui/View3DPy.cpp index 80f3ee4df..a1fee008d 100644 --- a/src/Gui/View3DPy.cpp +++ b/src/Gui/View3DPy.cpp @@ -142,6 +142,7 @@ View3DInventorPy::View3DInventorPy(View3DInventor *vi) View3DInventorPy::~View3DInventorPy() { + Base::PyGILStateLocker lock; for (std::list::iterator it = callbacks.begin(); it != callbacks.end(); ++it) Py_DECREF(*it); }