Memory leak fix put back in - the seg fault on Solaris is due to the recently added DetachCurrentThread call
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9547 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b0fe47a4dd
commit
104ce8223d
1 changed files with 1 additions and 3 deletions
|
|
@ -3489,9 +3489,7 @@ public:
|
|||
Printf(w->code, "SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, \"null upcall object\");\n");
|
||||
Printf(w->code, "}\n");
|
||||
|
||||
/* This makes all the director methods segfault on Solaris 8
|
||||
Printf(w->code, "if (jobj) jenv->DeleteLocalRef(jobj);\n");
|
||||
*/
|
||||
Printf(w->code, "if (jobj) jenv->DeleteLocalRef(jobj);\n");
|
||||
|
||||
if (!is_void)
|
||||
Printf(w->code, "return %s;", qualified_return);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue