fix memory leak

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8532 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-23 23:37:14 +00:00
commit be4d57cd57

View file

@ -30,8 +30,9 @@ public:
throw(Exc(42,"Hosed")); throw(Exc(42,"Hosed"));
return 1; return 1;
} }
int unknown() throw(A) { int unknown() throw(A*) {
throw A(); static A a;
throw &a;
return 1; return 1;
} }
int multi(int x) throw(int, const char *, Exc) { int multi(int x) throw(int, const char *, Exc) {