more fixes for DISOWN

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7719 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-10-25 14:49:09 +00:00
commit 651046b927
2 changed files with 12 additions and 13 deletions

View file

@ -1380,7 +1380,7 @@ public:
tab4, "my $self = tied(%{$_[0]});\n",
tab4, "return unless defined $self;\n",
tab4, "delete $ITERATORS{$self};\n",
tab4, "if ((exists $OWNER{$self}) and ($OWNER{$self} == 1)) {\n",
tab4, "if (exists $OWNER{$self}) {\n",
tab8, cmodule, "::", Swig_name_destroy(symname), "($self);\n",
tab8, "delete $OWNER{$self};\n",
tab4, "}\n}\n\n",