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:
parent
57c88f56df
commit
cd59284111
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue