fix memory leak
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e236ab4584
commit
d03d131b18
1 changed files with 3 additions and 2 deletions
|
|
@ -30,8 +30,9 @@ public:
|
|||
throw(Exc(42,"Hosed"));
|
||||
return 1;
|
||||
}
|
||||
int unknown() throw(A) {
|
||||
throw A();
|
||||
int unknown() throw(A*) {
|
||||
static A a;
|
||||
throw &a;
|
||||
return 1;
|
||||
}
|
||||
int multi(int x) throw(int, const char *, Exc) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue