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
|
|
@ -23,6 +23,10 @@ Foo *create_Foo() {
|
|||
return new Foo();
|
||||
}
|
||||
|
||||
void delete_Foo(Foo *f) {
|
||||
delete f;
|
||||
}
|
||||
|
||||
void test1(Foo *f, Integer x) { }
|
||||
|
||||
class Bar : public Foo { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue