Fix Wrapper delete as reported by Michel Marek

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@9535 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-11-08 23:17:41 +00:00
commit d5ecc29a4e

View file

@ -3111,7 +3111,7 @@ public:
Append(f->code, "}\n");
add_method(gname, wgname, 0);
Wrapper_print(f, f_wrappers);
Delete(f);
DelWrapper(f);
int assignable = is_assignable(n);
if (assignable) {
Wrapper *f = NewWrapper();
@ -3124,7 +3124,7 @@ public:
Append(f->code, "}\n");
Wrapper_print(f, f_wrappers);
add_method(sname, wsname, 0);
Delete(f);
DelWrapper(f);
}
if (!modern) {
if (assignable) {