Fix incorrect object deletion in C# module

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@13522 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2012-08-05 16:17:32 +00:00
commit b989e43922

View file

@ -3655,8 +3655,6 @@ public:
if (!ignored_method)
Printf(w->code, "%s\n", tm);
Delete(tm);
/* Add C type to callback typedef */
if (i > 0)
Printf(callback_typedef_parms, ", ");
@ -3788,7 +3786,6 @@ public:
Printf(callback_code, " return %s;\n", tm);
}
Delete(tm);
Delete(tp);
} else
Printf(callback_code, " %s;\n", upcall);