Remove no-op calls to swig_incref().
Python and Perl were calling this from the Director constructor, but swig_disown_flag is always false at that point, so the call doesn't do anything.
This commit is contained in:
parent
51541d7808
commit
083a03710a
2 changed files with 0 additions and 2 deletions
|
|
@ -233,7 +233,6 @@ namespace Swig {
|
||||||
char *str = SvPV(pkg, len);
|
char *str = SvPV(pkg, len);
|
||||||
swig_class = std::string(str, len);
|
swig_class = std::string(str, len);
|
||||||
swig_self = newRV_inc((SV *)newHV());
|
swig_self = newRV_inc((SV *)newHV());
|
||||||
swig_incref();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* discard our reference at destruction */
|
/* discard our reference at destruction */
|
||||||
|
|
|
||||||
|
|
@ -330,7 +330,6 @@ namespace Swig {
|
||||||
public:
|
public:
|
||||||
/* wrap a python object, optionally taking ownership */
|
/* wrap a python object, optionally taking ownership */
|
||||||
Director(PyObject *self) : swig_self(self), swig_disown_flag(false) {
|
Director(PyObject *self) : swig_self(self), swig_disown_flag(false) {
|
||||||
swig_incref();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* discard our reference at destruction */
|
/* discard our reference at destruction */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue