Apply #3289851 to fix memory leak in directors when checking for pending exceptions.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12681 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f35dd29dff
commit
e71624749a
2 changed files with 5 additions and 1 deletions
|
|
@ -3990,7 +3990,7 @@ public:
|
|||
|
||||
Printf(w->code, "jenv->%s(Swig::jclass_%s, Swig::director_methids[%s], %s);\n", methop, imclass_name, methid, jupcall_args);
|
||||
|
||||
Printf(w->code, "if (jenv->ExceptionOccurred()) return $null;\n");
|
||||
Printf(w->code, "if (jenv->ExceptionCheck() == JNI_TRUE) return $null;\n");
|
||||
|
||||
if (!is_void) {
|
||||
String *jresult_str = NewString("jresult");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue