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:
Olly Betts 2015-05-09 18:34:11 +12:00
commit 083a03710a
2 changed files with 0 additions and 2 deletions

View file

@ -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 */