fix memory leaks
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7990 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
174c1f84a5
commit
ff633b0680
8 changed files with 40 additions and 10 deletions
|
|
@ -2,6 +2,7 @@ from import_nomodule import *
|
|||
|
||||
f = create_Foo()
|
||||
test1(f,42)
|
||||
delete_Foo(f)
|
||||
|
||||
b = Bar()
|
||||
test1(b,37)
|
||||
|
|
|
|||
|
|
@ -15,3 +15,5 @@ if x != "Bar::blah":
|
|||
x = inherit_missing.do_blah(c)
|
||||
if x != "Spam::blah":
|
||||
print "Whoa! Bad return", x
|
||||
|
||||
inherit_missing.delete_Foo(a)
|
||||
|
|
|
|||
|
|
@ -84,6 +84,10 @@
|
|||
}
|
||||
|
||||
%}
|
||||
%{
|
||||
const int Hello::hello;
|
||||
%}
|
||||
|
||||
|
||||
// Functions with keywords
|
||||
%warnfilter(-314);
|
||||
|
|
|
|||
|
|
@ -95,3 +95,4 @@ if s.type != "void *":
|
|||
|
||||
|
||||
|
||||
free_void(v)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue