missing change from previous commit
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5773 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c8d7e4d971
commit
ac0d3805f8
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ namespace swigpy {
|
||||||
value_type *v = 0;
|
value_type *v = 0;
|
||||||
int res = obj ? asptr(obj, &v) : 0;
|
int res = obj ? asptr(obj, &v) : 0;
|
||||||
if (res) {
|
if (res) {
|
||||||
if (res > 1) {
|
if (res == SWIG_NEWPTR) {
|
||||||
value_type r(*v);
|
value_type r(*v);
|
||||||
delete v;
|
delete v;
|
||||||
return r;
|
return r;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue