solve possible seg. faults and directors #1080075
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6894 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0ac8253c3f
commit
544f24441e
7 changed files with 28 additions and 24 deletions
|
|
@ -40,7 +40,7 @@
|
|||
/* directorout */
|
||||
|
||||
%typemap(directorout) void * {
|
||||
if ((SWIG_ConvertPtr($input,(void **)(&$result),
|
||||
if (!$input || (SWIG_ConvertPtr($input,(void **)(&$result),
|
||||
0, SWIG_POINTER_EXCEPTION | $disown )) == -1)
|
||||
throw Swig::DirectorTypeMismatchException("Pointer conversion failed.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue