Fix some memory issues - use of deleted memory highlighted by DOH_DEBUG_MEMORY_POOLS
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13524 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
b989e43922
commit
315dc5a879
2 changed files with 3 additions and 4 deletions
|
|
@ -3565,6 +3565,7 @@ public:
|
|||
|
||||
if (returntype) {
|
||||
|
||||
Delete(qualified_return);
|
||||
qualified_return = SwigType_rcaststr(returntype, "c_result");
|
||||
|
||||
if (!is_void && (!ignored_method || pure_virtual)) {
|
||||
|
|
@ -3814,8 +3815,6 @@ public:
|
|||
if (!ignored_method)
|
||||
Printf(w->code, "%s\n", tm);
|
||||
|
||||
Delete(tm);
|
||||
|
||||
/* Add parameter to the intermediate class code if generating the
|
||||
* intermediate's upcall code */
|
||||
if ((tm = Getattr(p, "tmap:jtype"))) {
|
||||
|
|
@ -3890,7 +3889,6 @@ public:
|
|||
|
||||
Delete(arg);
|
||||
Delete(c_decl);
|
||||
Delete(c_param_type);
|
||||
Delete(ln);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue