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:
Marcelo Matus 2006-01-23 23:37:14 +00:00
commit d03d131b18

View file

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