cosmetic consistency
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d4aaf7a08a
commit
3286d72bb7
1 changed files with 1 additions and 3 deletions
|
|
@ -53,9 +53,7 @@
|
|||
int res = asptr_meth($input, &ptr);
|
||||
if (!SWIG_IsOK(res) || !ptr) { %variable_fail(SWIG_TypeError, "$type", "$name"); }
|
||||
$1 = *ptr;
|
||||
if (SWIG_IsNewObj(res)) {
|
||||
%delete(ptr);
|
||||
}
|
||||
if (SWIG_IsNewObj(res)) %delete(ptr);
|
||||
}
|
||||
%enddef
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue