Add new test and make it work

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-sploving@12268 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Vincent Couvert 2010-10-14 12:38:34 +00:00
commit 64bb416577
2 changed files with 18 additions and 3 deletions

View file

@ -1208,7 +1208,7 @@
}
%typemap(out) SWIGTYPE {
sciErr = createPointer(pvApiCtx, iVarOut, (void *)&$result);
sciErr = createPointer(pvApiCtx, iVarOut, %new_copy($result, $1_ltype));
if (sciErr.iErr) {
printError(&sciErr, 0);
return 0;