fix memory leak
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7059 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fd947483fa
commit
bdf5a07d91
1 changed files with 2 additions and 0 deletions
|
|
@ -418,6 +418,7 @@ class TypePass : private Dispatcher {
|
|||
|
||||
Hash *ts = SwigType_pop_scope();
|
||||
Setattr(n,"typescope",ts);
|
||||
Delete(ts);
|
||||
Setattr(n,"module",module);
|
||||
|
||||
/* Normalize deferred types */
|
||||
|
|
@ -527,6 +528,7 @@ class TypePass : private Dispatcher {
|
|||
if (name) {
|
||||
Hash *ts = SwigType_pop_scope();
|
||||
Setattr(n,"typescope",ts);
|
||||
Delete(ts);
|
||||
}
|
||||
|
||||
/* Normalize deferred types */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue