diff options
| author | Olly Betts <olly@survex.com> | 2015-05-09 18:34:11 +1200 |
|---|---|---|
| committer | Olly Betts <olly@survex.com> | 2015-05-09 18:34:11 +1200 |
| commit | 083a03710ae0dedfe2fcc595c05ba5693cce487d (patch) | |
| tree | 0dbe83004a84f7edc86ee702eecd389d4d98dbf3 | |
| parent | 51541d78088a335cf16b370ca0947df632cbd3ff (diff) | |
| download | swig-083a03710ae0dedfe2fcc595c05ba5693cce487d.tar.gz | |
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.
| -rw-r--r-- | Lib/perl5/director.swg | 1 | ||||
| -rw-r--r-- | Lib/python/director.swg | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/Lib/perl5/director.swg b/Lib/perl5/director.swg index 714a87877..acdd5c3d8 100644 --- a/Lib/perl5/director.swg +++ b/Lib/perl5/director.swg @@ -233,7 +233,6 @@ namespace Swig { char *str = SvPV(pkg, len); swig_class = std::string(str, len); swig_self = newRV_inc((SV *)newHV()); - swig_incref(); } /* discard our reference at destruction */ diff --git a/Lib/python/director.swg b/Lib/python/director.swg index 6e69e544c..f745f3fca 100644 --- a/Lib/python/director.swg +++ b/Lib/python/director.swg @@ -330,7 +330,6 @@ namespace Swig { public: /* wrap a python object, optionally taking ownership */ Director(PyObject *self) : swig_self(self), swig_disown_flag(false) { - swig_incref(); } /* discard our reference at destruction */ |
