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
2b0339f4
Commit
2b0339f4
authored
Sep 01, 2015
by
Wenzel Jakob
Browse files
refcounting fix
parent
c47fc488
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
include/pybind/pybind.h
include/pybind/pybind.h
+2
-3
No files found.
include/pybind/pybind.h
View file @
2b0339f4
...
@@ -62,8 +62,8 @@ private:
...
@@ -62,8 +62,8 @@ private:
/// Chained list of function entries for overloading
/// Chained list of function entries for overloading
struct
function_entry
{
struct
function_entry
{
const
char
*
name
=
nullptr
;
const
char
*
name
=
nullptr
;
PyObject
*
(
*
impl
)
(
function_entry
*
,
PyObject
*
,
PyObject
*
,
PyObject
*
);
PyObject
*
(
*
impl
)
(
function_entry
*
,
PyObject
*
,
PyObject
*
,
PyObject
*
)
=
nullptr
;
PyMethodDef
*
def
;
PyMethodDef
*
def
=
nullptr
;
void
*
data
=
nullptr
;
void
*
data
=
nullptr
;
bool
is_constructor
=
false
,
is_method
=
false
;
bool
is_constructor
=
false
,
is_method
=
false
;
short
keywords
=
0
;
short
keywords
=
0
;
...
@@ -316,7 +316,6 @@ private:
...
@@ -316,7 +316,6 @@ private:
while
(
entry
)
{
while
(
entry
)
{
delete
entry
->
def
;
delete
entry
->
def
;
operator
delete
(
entry
->
data
);
operator
delete
(
entry
->
data
);
Py_XDECREF
(
entry
->
sibling
);
function_entry
*
next
=
entry
->
next
;
function_entry
*
next
=
entry
->
next
;
delete
entry
;
delete
entry
;
entry
=
next
;
entry
=
next
;
...
...
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