fix memory leaks in test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8597 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d3102b4cf9
commit
dde6392a0c
2 changed files with 14 additions and 0 deletions
|
|
@ -81,6 +81,8 @@ try:
|
|||
except AttributeError:
|
||||
pass
|
||||
|
||||
dc.F_destroy(f)
|
||||
|
||||
ff = dc.new_FFF()
|
||||
try:
|
||||
del_ff = dc.delete_FFF
|
||||
|
|
@ -88,6 +90,8 @@ try:
|
|||
except AttributeError:
|
||||
pass
|
||||
|
||||
dc.F_destroy(ff)
|
||||
|
||||
g = dc.new_G()
|
||||
|
||||
try:
|
||||
|
|
@ -96,6 +100,8 @@ try:
|
|||
except AttributeError:
|
||||
pass
|
||||
|
||||
dc.G_destroy(g)
|
||||
|
||||
gg = dc.new_GG()
|
||||
dc.delete_GG(gg)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue