cosmetic consistency

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8212 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-04 20:19:37 +00:00
commit 3286d72bb7

View file

@ -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