summaryrefslogtreecommitdiffstats
path: root/pygtk.py
diff options
context:
space:
mode:
authorJon Trowbridge <trow@ximian.com>2003-01-08 22:06:07 +0000
committerJon Trowbridge <trow@src.gnome.org>2003-01-08 22:06:07 +0000
commit56e35a4e8917b0b9b49fa0ba2bc114c44660a4e7 (patch)
tree1484c32c5628a63960339fb93d770dac405d2e91 /pygtk.py
parente1c97a036335188d788cad5c3fe2dc8bd41f09ff (diff)
downloadpygobject-56e35a4e8917b0b9b49fa0ba2bc114c44660a4e7.tar.gz
pygobject-56e35a4e8917b0b9b49fa0ba2bc114c44660a4e7.tar.xz
pygobject-56e35a4e8917b0b9b49fa0ba2bc114c44660a4e7.zip
Wrap Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS around the call to
2003-01-08 Jon Trowbridge <trow@ximian.com> * pygobject.c (pygobject_dealloc): Wrap Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS around the call to g_object_unref. We need to do this because the object finalizers might trigger other code that has to acquire the interpreter lock, causing a deadlock. Fixes #102756. * gtk/gtk-types.c (pygtk_style_helper_dealloc): Wrap the call to g_object_unref in Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS. This should let us avoid other instances of bug #102756. (pygtk_style_helper_setitem): Ditto. (pygtk_tree_model_row_dealloc): Ditto. (pygtk_tree_model_row_iter_dealloc): Ditto. * gtk/gdk.override (pygdk_unblock_threads, pygdk_unblock_threads): Restored David I Lehn's patch (#98380). His patch was fine --- it just caused bug #102756 to emerge.
Diffstat (limited to 'pygtk.py')
0 files changed, 0 insertions, 0 deletions