summaryrefslogtreecommitdiff
path: root/Lib/perl5/director.swg
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2015-05-09 18:34:11 +1200
committerOlly Betts <olly@survex.com>2015-05-09 18:34:11 +1200
commit083a03710ae0dedfe2fcc595c05ba5693cce487d (patch)
tree0dbe83004a84f7edc86ee702eecd389d4d98dbf3 /Lib/perl5/director.swg
parent51541d78088a335cf16b370ca0947df632cbd3ff (diff)
downloadswig-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.
Diffstat (limited to 'Lib/perl5/director.swg')
-rw-r--r--Lib/perl5/director.swg1
1 files changed, 0 insertions, 1 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 */