mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
error_already_set: acquire GIL one line earlier (fixes #1779)
This commit is contained in:
parent
502ffe50a9
commit
8b90b1da62
@ -1998,8 +1998,8 @@ class gil_scoped_release { };
|
|||||||
|
|
||||||
error_already_set::~error_already_set() {
|
error_already_set::~error_already_set() {
|
||||||
if (m_type) {
|
if (m_type) {
|
||||||
error_scope scope;
|
|
||||||
gil_scoped_acquire gil;
|
gil_scoped_acquire gil;
|
||||||
|
error_scope scope;
|
||||||
m_type.release().dec_ref();
|
m_type.release().dec_ref();
|
||||||
m_value.release().dec_ref();
|
m_value.release().dec_ref();
|
||||||
m_trace.release().dec_ref();
|
m_trace.release().dec_ref();
|
||||||
|
Loading…
Reference in New Issue
Block a user