projects
/
wxWidgets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55811cd
)
Don't decref if the interpreter is not initialized, (eg. it's in its
author
Robin Dunn
<robin@alldunn.com>
Sat, 28 Oct 2006 02:59:02 +0000
(
02:59
+0000)
committer
Robin Dunn
<robin@alldunn.com>
Sat, 28 Oct 2006 02:59:02 +0000
(
02:59
+0000)
shutdown process.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42553
c3d73ce0
-8a6f-49c7-b76d-
6d57e0e08775
wxPython/src/helpers.cpp
patch
|
blob
|
blame
|
history
diff --git
a/wxPython/src/helpers.cpp
b/wxPython/src/helpers.cpp
index 5497d2f5b1c8f2af81f701fd72705981e15b020c..dfafce7dc56a492a1f5faa9d965d44ce2ec272e3 100644
(file)
--- a/
wxPython/src/helpers.cpp
+++ b/
wxPython/src/helpers.cpp
@@
-1724,7
+1724,7
@@
PyObject* wxPyCBH_callCallbackObj(const wxPyCallbackHelper& cbh, PyObject* argTu
void wxPyCBH_delete(wxPyCallbackHelper* cbh) {
- if (cbh->m_incRef) {
+ if (cbh->m_incRef
&& Py_IsInitialized()
) {
wxPyBlock_t blocked = wxPyBeginBlockThreads();
Py_XDECREF(cbh->m_self);
Py_XDECREF(cbh->m_class);