add support for newfree typemaps in php module
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9640 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b92d8e5cff
commit
9f88801914
2 changed files with 16 additions and 1 deletions
|
|
@ -1254,11 +1254,22 @@ public:
|
|||
if (cleanup) {
|
||||
Printv(f->code, cleanup, NIL);
|
||||
}
|
||||
// What's this bit for?
|
||||
|
||||
/* Look to see if there is any newfree cleanup code */
|
||||
if (GetFlag(n, "feature:new")) {
|
||||
if ((tm = Swig_typemap_lookup_new("newfree", n, "result", 0))) {
|
||||
Printf(f->code, "%s\n", tm);
|
||||
Delete(tm);
|
||||
}
|
||||
}
|
||||
|
||||
/* See if there is any return cleanup code */
|
||||
if ((tm = Swig_typemap_lookup_new("ret", n, "result", 0))) {
|
||||
Printf(f->code, "%s\n", tm);
|
||||
Delete(tm);
|
||||
}
|
||||
|
||||
|
||||
if (mvr) {
|
||||
if (!mvrset) {
|
||||
Printf(f->code, "return _return_value;\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue