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:
Marcelo Matus 2005-12-16 01:21:59 +00:00
commit ff633b0680
8 changed files with 40 additions and 10 deletions

View file

@ -2,6 +2,7 @@ from import_nomodule import *
f = create_Foo()
test1(f,42)
delete_Foo(f)
b = Bar()
test1(b,37)

View file

@ -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)

View file

@ -84,6 +84,10 @@
}
%}
%{
const int Hello::hello;
%}
// Functions with keywords
%warnfilter(-314);

View file

@ -95,3 +95,4 @@ if s.type != "void *":
free_void(v)