[PHP] Fix memory leak in code generated for a callback. Patch from
SF bug #3510806. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13079 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9d8d50f034
commit
d81770dd93
2 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,10 @@ See the RELEASENOTES file for a summary of changes in each release.
|
|||
Version 2.0.7 (in progress)
|
||||
===========================
|
||||
|
||||
2012-05-12: olly
|
||||
[PHP] Fix memory leak in code generated for a callback. Patch from
|
||||
SF bug #3510806.
|
||||
|
||||
2012-05-12: olly
|
||||
[PHP] Avoid using zend_error_noreturn() as it doesn't work with all
|
||||
builds of PHP (SF bug #3166423). Instead we now wrap it in a
|
||||
|
|
|
|||
|
|
@ -2575,6 +2575,7 @@ done:
|
|||
Replaceall(tm, "$owner", "0");
|
||||
Printv(wrap_args, "zval ", source, ";\n", NIL);
|
||||
Printf(wrap_args, "args[%d] = &%s;\n", idx - 1, source);
|
||||
Printv(wrap_args, "INIT_ZVAL(", source, ");\n", NIL);
|
||||
|
||||
Printv(wrap_args, tm, "\n", NIL);
|
||||
Putc('O', parse_args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue