summaryrefslogtreecommitdiff
path: root/Source/Modules/lua.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Modules/lua.cxx')
-rw-r--r--Source/Modules/lua.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Modules/lua.cxx b/Source/Modules/lua.cxx
index 1b4c8f617..80ea47f3f 100644
--- a/Source/Modules/lua.cxx
+++ b/Source/Modules/lua.cxx
@@ -856,6 +856,9 @@ public:
//Printf(stdout,"Swig_overload_dispatch %s %s '%s' %d\n",symname,wname,dispatch,maxargs);
if (!luaAddSymbol(lua_name, n)) {
+ DelWrapper(f);
+ Delete(dispatch);
+ Delete(tmp);
return SWIG_ERROR;
}