Fix memory leaks introduced by previous commit

This commit is contained in:
Olly Betts 2016-12-01 14:04:10 +13:00
commit 659116a1b2
2 changed files with 4 additions and 0 deletions

View file

@ -620,6 +620,7 @@ public:
Delete(s_arginfo);
Delete(f_runtime);
Delete(f_begin);
Delete(arginfo_used);
Printf(f_phpcode, "%s\n%s\n", pragma_incl, pragma_code);
if (s_fakeoowrappers) {
@ -668,6 +669,7 @@ public:
String * s = cs_entry;
if (!s) s = s_entry;
Printf(s, " SWIG_ZEND_NAMED_FE(%(lower)s,%s,swig_arginfo_%s)\n", cname, iname, arginfo_code);
Delete(arginfo_code);
}
/* ------------------------------------------------------------