Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
8b90b1da
"example/example-opaque-types.cpp" did not exist on "12cf543804ae90db08bcb2c836141fcf1b037e28"
Commit
8b90b1da
authored
Jul 06, 2019
by
Wenzel Jakob
Browse files
error_already_set: acquire GIL one line earlier (fixes #1779)
parent
502ffe50
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+1
-1
No files found.
include/pybind11/pybind11.h
View file @
8b90b1da
...
@@ -1998,8 +1998,8 @@ class gil_scoped_release { };
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment