Commit 83f67ae
Prevent crash when an object is destroyed after calling PythonQt::cleanup()
In certain situations the dealloc callback
`PythonQtInstanceWrapper_dealloc` is called after `PythonQt::cleanup()` has
been run. This can happen when Python destroys objects during `Py_Finalize()`.
This commit adds a check that PythonQt is still initialized in the dealloc callback.
(cherry picked from commit commontk/PythonQt@e4bd663)1 parent 34eaa2c commit 83f67ae
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | 135 | | |
| |||
0 commit comments