missing change from previous commit

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5773 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-03-19 00:50:12 +00:00
commit cd59284111

View file

@ -190,7 +190,7 @@ namespace swigpy {
value_type *v = 0;
int res = obj ? asptr(obj, &v) : 0;
if (res) {
if (res > 1) {
if (res == SWIG_NEWPTR) {
value_type r(*v);
delete v;
return r;